The only way I know how to do it is to have my cwd set to the directory I
want on sys.path, then use -m for script execution (using a separate shell
session for anything where I want a different working directory).

I don't know of any way to handle a varying cwd without manipulating the
path directly through either virtualenv or PYTHONPATH.

Cheers,
Nick.

--
Sent from my phone, thus the relative brevity :)
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to