"""Add the parent directory to $PYTHONPATH"""from__future__importabsolute_importfrom__future__importdivisionfrom__future__importprint_functionimportos.pathimportsysdefadd_path(path):ifpathnotinsys.path:sys.path.insert(0,path)this_dir=os.path.dirname(__file__)# Add project path to PYTHONPATHproj_path=os.path.join(this_dir,'..')add_path(proj_path)