I would like to import some functions I regularly use into my scripts, instead of having to paste them in it. This is the reading I get when I check with the path browser:
>>> sys.path
C:\Users\Apex\AppData\Local\Programs\Python\Python37-32\Lib\idlelib
C:\Users\Apex\AppData\Local\Programs\Python\Python37-32\python37.zip
C:\Users\Apex\AppData\Local\Programs\Python\Python37-32\DLLs
C:\Users\Apex\AppData\Local\Programs\Python\Python37-32\lib
C:\Users\Apex\AppData\Local\Programs\Python\Python37-32
C:\Users\Apex\AppData\Local\Programs\Python\Python37-32\lib\sitepackages
I'd like to permanently add the following path to it:
C:\Users\Apex\AppData\Local\Programs\Python\Python37-32\PythonScripts
I've tried the following:
path = 'C:/Users/Apex/AppData/Local/Programs/Python/Python37-32/PythonScripts'
import sys, os
sys.path.append(path)
All the paths above and the one I want to add appear in the shell, but when I check the path browser, mine isn't there.
How can I set PythonScripts
to Python's path permanently?
I read up a bit on PYTHONPATH, but I didn't understand how to use it. Please, when you reply, don't I assume I might know everything you do. Thanks.