Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python get parent directory

from pathlib import Path
Path('C:Program Files').parent
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #parent #directory
ADD COMMENT
Topic
Name
4+9 =