I am unable to save .py files to the current working directory in Python -
i have prepared following script prepared set current working directory in python:
import os os.getcwd() if os.getcwd() !="d:\documents\tech stuff\python\files": os.chdir("d:\documents\tech stuff\python\files") print (os.getcwd())
after executing script via idle created new python file , clicked on 'save as'. still see default python window in c:\program files open , not directory mentioned above.
can explain why not able set current working directory , mention workaround same?
i using python version 3.51.
Comments
Post a Comment