Correct the REPO_DIRNAME
authorDelbert <code@delbert.me>
Thu, 30 Apr 2015 02:15:58 +0000 (10:15 +0800)
committerDelbert <code@delbert.me>
Thu, 30 Apr 2015 02:15:58 +0000 (10:15 +0800)
examples/web_demo/app.py

index c667ea9..09411f3 100644 (file)
@@ -17,7 +17,7 @@ import exifutil
 
 import caffe
 
-REPO_DIRNAME = os.path.abspath(os.path.dirname(__file__) + '/../..')
+REPO_DIRNAME = os.path.abspath(os.path.dirname(os.path.abspath(__file__)) + '/../..')
 UPLOAD_FOLDER = '/tmp/caffe_demos_uploads'
 ALLOWED_IMAGE_EXTENSIONS = set(['png', 'bmp', 'jpg', 'jpe', 'jpeg', 'gif'])