Correctness: sys.path.append("..")

Jason Orendorff jason at jorendorff.com
Thu Jan 10 01:37:10 EST 2002


> Despite the wrongness, I'm going with the os.absolute_path("..")
> solution.

Why not just put MainProg.py in the root directory, outside
your packages?  This is more sensible than altering sys.path,
and should do what you want, I think.

## Jason Orendorff    http://www.jorendorff.com/




More information about the Python-list mailing list