Python Path the Easy Way. Add .pth Python Configuration Files

So python path is always a little daunting when coming to deployment. Especially since it’s typically done outside of your neatly wrapped software package.

The easiest way to do this so far is using python configuration files. Drop dead easy: put a .pth extension file in your site-packages directory, where each line corresponds to an entry you want put into sys.path.

http://docs.python.org/2/install/#modifying-python-s-search-path

Leave a Comment