def enforce_is_subdir(path, root=PROJECT_ROOT):
    if not os.path.abspath(path).startswith(root):
        raise RuntimeError('this path is not safe!')
Ensure that a particular path is within a subdirectory of changes.
dataset/ETHPy150Open dropbox/changes/changes/utils/dirs.py/enforce_is_subdir