I was trying to add python path to the system evironment path by python.
I've tried
os.eviron['Path'] += ';C:/Anaconda3/'
However, I found this only make a difference in the script. I checked the system and didn't find ;C:/Anaconda3/
in the environment variable 'Path', which makes command python xxx.py
can not be recognized by the system.
Is there any function or method to edit the system evironment path by python?