Add directory to sys.path based on variable

loial jldunn2000 at gmail.com
Thu Jan 30 07:39:36 EST 2014


I want to add a path to sys.path based upon a variable

Can I do that?

Hardcodeing the path works fine, but I want to set it based upon a variable.

I know I can set PYTHONPATH, but just wondering if I can add a directory on the fly to sys.path using a variable








More information about the Python-list mailing list