summaryrefslogtreecommitdiff
path: root/build/win32/gi_msvc_build_utils.py
blob: 150f66ec942bca0e1399883db23e81adcd77e6f1 (plain)
1
2
3
4
5
6
7
8
import os

def parent_dir(path):
    if not os.path.isabs(path):
        path = os.path.abspath(path)
    if os.path.isfile(path):
        path = os.path.dirname(path)
    return os.path.split(path)[0]