Re: Referencing resources from python

2009-02-16 Thread Rhodri James
On Tue, 17 Feb 2009 00:41:26 -, Noam Aigerman wrote: Hi, What is the best way to reference a non-python file's path from inside python ? Until now, I (stupidly) had such lines as: theFile=open('../somefile.txt') in my python files. Now I moved my python files to another dir, and a

Referencing resources from python

2009-02-16 Thread Noam Aigerman
Hi, What is the best way to reference a non-python file's path from inside python ? Until now, I (stupidly) had such lines as: theFile=open('../somefile.txt') in my python files. Now I moved my python files to another dir, and all those relative filenames broke. On the other hand, the