Horje
How do I get the parent directory in Python? Code Example
How do I get the parent directory in Python?
from pathlib import Path
Path(Path.cwd()).parent




Python

Related
give answer in 6 decimal python Code Example give answer in 6 decimal python Code Example
python selenium web scraping example Code Example python selenium web scraping example Code Example
add colorbar to figure matplotlib line plots Code Example add colorbar to figure matplotlib line plots Code Example
python turtle background image Code Example python turtle background image Code Example
dataframe memory usage Code Example dataframe memory usage Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8