How do I write a .pth file?

by Iska   Last Updated June 14, 2018 14:01 PM

I want to change the directories in which Python looks for my packages and modules, and changing PYTHONPATH in Windows 10 Environment Variables does not work. So the only solution left (apparently) is to place a .pth file in my package folder.

How do I create a .pth file ? How can I write in it, how can I open it ?

Also, what should I write in it in order for Python to find it and to be able to import my package ?



Related Questions


Error with Python win32com.

Updated April 20, 2018 11:01 AM

how to use oprah-proxy (a python script on github)?

Updated August 22, 2017 01:01 AM

Package Python Script and Modules Into .rpm

Updated July 28, 2017 19:01 PM

Change pythonpath in Vim

Updated May 26, 2015 01:00 AM

Python Flask error

Updated August 20, 2015 19:00 PM