Answers for "how to go back from the directory python"

1

python how to change back to the later directory

import os
#just write the whole file path in the change directory function
os.chdir('C:User/.../the_name_of_the_directory')
#Just fo check
os.getcwd()
Posted by: Guest on May-04-2021
0

python reference to back folder

os.chdir("../nodes")
Posted by: Guest on March-19-2020

Code answers related to "how to go back from the directory python"

Python Answers by Framework

Browse Popular Code Answers by Language