Answers for "How do I get the parent directory in Python?"

0

How do I get the parent directory in Python?

from pathlib import Path
Path(Path.cwd()).parent
Posted by: Guest on November-29-2020

Code answers related to "How do I get the parent directory in Python?"

Python Answers by Framework

Browse Popular Code Answers by Language