def enforce_is_subdir(path, root=PROJECT_ROOT):
    if not os.path.abspath(path).startswith(root):
        raise RuntimeError('this path is not safe!')
This method sets and unsets the current font to be italic.
dataset/ETHPy150Open dropbox/changes/changes/utils/dirs.py/enforce_is_subdir--crossover with--dataset/ETHPy150Open sightmachine/SimpleCV/SimpleCV/DrawingLayer.py/DrawingLayer.setFontItalic