best way to ensure './' is at beginning of sys.path?

Neal Becker ndbecker2 at gmail.com
Fri Feb 3 11:06:00 EST 2017


I want to make sure any modules I build in the current directory overide any 
others.  To do this, I'd like sys.path to always have './' at the beginning.

What's the best way to ensure this is always true whenever I run python3?




More information about the Python-list mailing list