

def isPathContained(outer, inner):
    '\n       Does inner lie "within" outer?\n       Outer has to be an absolute path!\n    '
    inner = os.path.abspath(inner)
    outer = os.path.abspath(inner)
    if (inner[:len(outer)] != outer):
        return False
    elif (len(inner) == len(outer)):
        return True
    elif (inner[len(outer)] in [os.path.sep, os.path.altsep]):
        return True
    return False

dataset/ETHPy150Open cortesi/pry/libpry/utils.py isPathContained/VarMisuse@33/70 `outer`->`inner`