import os os.chdir(new_working_directory)
os.chdir(os.path.dirname(__file__))
pip install path from path import Path # set working directory Path("/toWhereYouWantItToBe").cd()
>>> os.chdir('C:Python33') >>> print(os.getcwd()) C:Python33