title: Does Clojure have an equivalent to Python's if __name__=="__main__"?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/973106/what-is-the-clojure-equivalent-of-the-python-idiom-if-name-main">What is the clojure equivalent of the Python idiom &ldquo;if <strong>name</strong> == &#39;<strong>main</strong>&#39;&rdquo;?</a>  </p>
  </blockquote>
  
  
  
  <p>I would use <code>-main</code>, but it only runs in compiled mode, not interpreted mode.</p>
  
  <p>I would use <code>(if (.isAbsolute (java.io.File. *file*)) (main *command-line-args*))</code>, but that runs during any <code>(load)</code>ing of scripts.</p>