python get parent dir .. code example
Example 1: python get parent directory
from pathlib import Path
Path('C:\Program Files').parent
Example 2: how do i get parent directory python
from pathlib import Path
path = Path(Path.cwd())
print(path.parent)