On Sat, Jan 3, 2009 at 12:40 PM, Mark Volkmann <r.mark.volkm...@gmail.com> wrote: > On Fri, Jan 2, 2009 at 11:12 PM, Timothy Pratley > <timothyprat...@gmail.com> wrote: >> >> Ah, another left field idea: >> if you test the namespace you will find running from REPL the >> namespace will be user >> running from the command will be clojure.core >> I'm certain that will work as I've tested it in the past. >> Bit of a hack, but should do the job. > > Sounds good. I can't find the function that returns the current > namespace though. Do you remember what it is?
I just learned that the current namespace is stored in the special variable *ns*. It's not clear though that this will help. When I add (println "*ns* =" *ns*) to the top of my .clj file, I get the same output: *ns* = #<Namespace user> whether I run it as a script or use (load-file "demo.clj") from a REPL. -- R. Mark Volkmann Object Computing, Inc. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---