Add a directory to Python sys.path so that it's included each time I use Python
问题 Currently, when trying to reference some library code, I'm doing this at the top of my python file: import sys sys.path.append('''C:\code\my-library''') from my-library import my-library Then, my-library will be part of sys.path for as long as the session is active. If I start a new file, I have to remember to include sys.path.append again. I feel like there must be a much better way of doing this. How can I make my-library available to every python script on my windows machine without having