- quick fix of flub for path extraction
authorEric Zavesky <ezavesky@research.att.com>
Fri, 17 Nov 2017 22:59:43 +0000 (16:59 -0600)
committerEric Zavesky <ezavesky@research.att.com>
Fri, 17 Nov 2017 22:59:43 +0000 (16:59 -0600)
face_privacy_filter/filter_image.py

index a2cf86b..97a5c65 100644 (file)
@@ -126,7 +126,7 @@ def main(config={}):
 
 if __name__ == '__main__':
     # patch the path to include this object
-    pathRoot = os.path.dirname(os.path.basename(os.path.abspath(__file__)))
+    pathRoot = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
     if pathRoot not in sys.path:
         sys.path.append(pathRoot)
     main()