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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -