On Aug 19, 2011, at 2:57 PM, Andrew Pennebaker wrote:

> There must be a more dynamic way than configuring Factor for every piece of 
> code I write. What if Factor interpreted "." as the directory from which 
> Factor was called?

If you're trying to load modules relative to a main script file, a bit of 
parse-time evaluation before the USING: line will do the trick:

<<
USING: io.pathnames namespaces source-files vocabs.loader ; 
! add the script file's parent directory to the search path
file get parent-directory add-vocab-root
>>

USING: something.relative.to.this.file ;

Is that what you're going for?

-Joe

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to