-1

Possible Duplicate:
What is the clojure equivalent of the Python idiom “if name == 'main'”?

I would use -main, but it only runs in compiled mode, not interpreted mode.

I would use (if (.isAbsolute (java.io.File. *file*)) (main *command-line-args*)), but that runs during any (load)ing of scripts.

Community
  • 1
  • 1
mcandre
  • 20,703
  • 18
  • 81
  • 144

1 Answers1

2

Duplicate of What is the clojure equivalent of the Python idiom "if __name__ == '__main__'"?. I guess I'm supposed to "vote to close this question as a duplicate" but I can't figure out how; someone feel free to edit this or inform me of the proper technique.

Community
  • 1
  • 1
amalloy
  • 83,458
  • 7
  • 138
  • 194