On Aug 26, 2011, at 9:15 AM, Terje Dahl wrote:

> I disagree.
> 
> Simply use:  (System/getProperty "user.home")
> 
> This will give you a useful path to work with, no matter where you
> start from.
> Works on my Mac. Should work on Windows.
> 
> From there I would build a simple library which tests which OS I am
> on, and gives me the paths to the conventional locations on each
> plattform for applications-support, prefs, caching, documents,
> desktop, etc. I.e. (cache-dir my-application-name).

None of this gets you to the directory of your project, unless you hard code 
the path from your home directory.

That said, it looks like Arthur Edelstein is working on a promising approach: 
https://github.com/arthuredelstein/local-file

 -Lee

-- 
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

Reply via email to