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
Post a Comment