But finding the source path from the namespace is what I can't figure
out.  You can look at metadata on a var, and this has a :file field,
but typically :file says NO_SOURCE_PATH.

On Dec 28, 12:33 am, Emeka <[email protected]> wrote:
> Hello nchubrich,
>
> I thinking that you can do this with easy using namespace which would lead
> you to resolve the file name and then figure out the path.
>
> Emeka
>
> On Mon, Dec 28, 2009 at 2:43 AM, nchubrich <[email protected]>wrote:
>
> > Does anyone know how to dynamically access the pathname for a
> > particular piece of code?  I.E., I'd like to be able to write a
> > function that can be called in any context and returns the pathname
> > for the code it was called in.  (My intended use for this is to
> > develop a testing package; I want to figure out an appropriate place
> > to save the test files.)
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Clojure" group.
> > To post to this group, send email to [email protected]
> > Note that posts from new members are moderated - please be patient with
> > your first post.
> > To unsubscribe from this group, send email to
> > [email protected]<clojure%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/clojure?hl=en
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to