On Thu, Aug 25, 2011 at 6:49 PM, Lee Spector <lspec...@hampshire.edu> wrote: > While slurp and spit are beautifully elegant it's not so elegant to tell > slurp how to find the file you want it to slurp. In many other > languages/environments there's a concept of the working directory or project > directory, relative to which you can specify locations. In Clojure you have > to deal with the classpath, outside of the language proper, and many of the > common ways of running Clojure programs handle this differently. I don't know > if there's a good, general solution to this, but for me (both as a programmer > and especially as a teacher) it is definitely a pain point.
What about (System/getProperty "user.dir")? -- Protege: What is this seething mass of parentheses?! Master: Your father's Lisp REPL. This is the language of a true hacker. Not as clumsy or random as C++; a language for a more civilized age. -- 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 Note that posts from new members are moderated - please be patient with your first post. 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