Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to go up levels in path python

path_parent = os.path.dirname(os.getcwd())
os.chdir(path_parent)
print(os.getcwd())
Source by www.kite.com #
 
PREVIOUS NEXT
Tagged: #levels #path #python
ADD COMMENT
Topic
Name
3+3 =