operating system - Python: os.chdir does not work in Python? -


i have below code snippet , function chdir doesn't seem work..

cwd_path = os.getcwd() print("cwd: " + cwd_path) changed = os.chdir(r"c:/cisco/python/my_learning/prank") print(changed) 

the below output:

cwd c:\cisco\python\my_learning none 

as can read here os.chdir returns none in cases.


Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -