Python Get Parent Directory
from pathlib import Path
Path('C:\Program Files').parent
wp-overwatch.com
from pathlib import Path
Path('C:\Program Files').parent
import os.path
os.path.dirname('C:\Program Files')
from pathlib import Path
path = Path(Path.cwd())
print(path.parent)