En Sun, 17 Feb 2008 22:34:27 -0200, Josh English <[EMAIL PROTECTED]> escribi�:
> Here's what I think is happening: IMS/__init__.py uses os.getcwd() to > establish the path to the data folder and the files inside of it. When > I run StoryCreator, os.getcwd() returns the story folder. > If I'm right, how can I get the IMS/__init__.py module to use relative > paths to its own module, and not the current working directory the os > module provides? Use the module's own __file__ attribute: my_path = os.path.abspath(os.path.dirname(__file__)) -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list