def getcwd():
    try:
        a = os.stat(os.environ['PWD'])
        b = os.stat(os.getcwd())
        if a.ino == b.ino and a.dev == b.dev:
            working_dir = os.environ['PWD']
        else:
            working_dir = os.getcwd()
    except:
        working_dir = os.getcwd()
    return working_dir
Returns current path, try to use PWD env first
dataset/ETHPy150Open benoitc/gaffer/gaffer/util.py/getcwd