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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -