Referencing resources from python
noama at answers.com
Mon Feb 16 19:41:26 EST 2009
What is the best way to reference a non-python file's path from inside
Until now, I (stupidly) had such lines as:
in my python files. Now I moved my python files to another dir, and all
those relative filenames broke.
On the other hand, the solution of writing the full path of each
resource isn't welcome either, as we're working from a SVN repository
and we sometimes checkout to different dir's. I am sure there is a third
way which didn't occur to me...
What do you recommend?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list