Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to go to previous directory in os python

print(os. getcwd())
path_parent = os. path. dirname(os. getcwd())
os. chdir(path_parent)
print(os. getcwd())
Comment

PREVIOUS NEXT
Code Example
Python :: find all unique substring permutations of a string of a specific length python 
Python :: save image to file from URL 
Python :: convert utc to gmt+7 pandas 
Python :: check if an object has an attribute in Python 
Python :: pack tkinter 
Python :: python add commas to list 
Python :: python package structure 
Python :: how to change the colour of axes in matplotlin 
Python :: pygame make a window 
Python :: Check if file already existing 
Python :: uninstall a python package from virtualenv 
Python :: django validators import 
Python :: open and write in a file in python 
Python :: pyton recognize any datetime format 
Python :: bmi calculator in python 
Python :: how to initialize set in python 
Python :: python int string float 
Python :: concact geodataframe python 
Python :: how to call a python script from another python script 
Python :: ValueError: Shapes (None, 1) and (None, 3) are incompatible 
Python :: odoo scaffold command 
Python :: django url with string parameter 
Python :: odoo sorted 
Python :: pop list python 
Python :: Create an array of 10 zeros 
Python :: django bulk update 
Python :: how to copy the list in python 
Python :: python find if strings are anagrams 
Python :: how to find and remove certain characters from text string in python 
Python :: hide turtle 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =