daveray / dorothy

Hiccup-style generation of Graphviz graphs in Clojure
244 stars 25 forks source link

Moved local awt definitions for show! into function #6

Closed Engelberg closed 10 years ago

Engelberg commented 10 years ago

Because the awt-based definitions were outside of the show! function, they were getting executed at compile time. This posed a problem for my Heroku web app which has dorothy as a dependency; the calls to awt were causing the compilation process to throw an error because there is no graphics environment configured for the cloud environment.

daveray commented 10 years ago

seems reasonable. thanks!