From 363161727ee72fdcb62307bcd134e1e1db8ac2c6 Mon Sep 17 00:00:00 2001 From: Colin Jones Date: Tue, 13 Jul 2010 09:41:25 -0500 Subject: [PATCH] moving run call out of the .clj --- run.bat | 2 +- run.sh | 2 +- src/path_to_enlightenment.clj | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/run.bat b/run.bat index ea95fab..bf19255 100755 --- a/run.bat +++ b/run.bat @@ -1 +1 @@ -java -cp lib/clojure-1.1.0.jar;src clojure.main src/path_to_enlightenment.clj +java -cp lib/clojure-1.1.0.jar;src clojure.main -e '(load "path_to_enlightenment")' -e "(do (in-ns 'path-to-enlightenment) (run))" diff --git a/run.sh b/run.sh index bc0ad00..4881550 100755 --- a/run.sh +++ b/run.sh @@ -1,2 +1,2 @@ -java -cp lib/clojure-1.1.0.jar:src clojure.main src/path_to_enlightenment.clj +java -cp lib/clojure-1.1.0.jar:src clojure.main -e '(load "path_to_enlightenment")' -e "(do (in-ns 'path-to-enlightenment) (run))" echo diff --git a/src/path_to_enlightenment.clj b/src/path_to_enlightenment.clj index e3ea2a9..8185181 100644 --- a/src/path_to_enlightenment.clj +++ b/src/path_to_enlightenment.clj @@ -27,7 +27,5 @@ "partial_functions"]) (defn run [] - (apply load (map (partial str "koans/") ordered-koans)) + (apply load (doall (map (partial str "koans/") ordered-koans))) (println "You have achieved clojure enlightenment. Namaste.")) - -(run)