]> ToastFreeware Gitweb - chrisu/seepark.git/blobdiff - web/seepark_web.py
try to be a bit more clever in finding our libraries
[chrisu/seepark.git] / web / seepark_web.py
index 065e3f2a6365535dfae30cff3146d3e43c7cc9a0..f53585ec0ca782539d3d153d31768b36cc3e014a 100644 (file)
@@ -10,7 +10,9 @@ import flask.json
 from flask_sqlalchemy import SQLAlchemy
 
 
 from flask_sqlalchemy import SQLAlchemy
 
 
-sys.path.append('..')
+app_path = os.path.dirname(os.path.realpath(__file__))
+lib_path = os.path.join(cur_path, '..')
+sys.path.append(lib_path)
 from seeparklib.openweathermap import openweathermap_json, OpenWeatherMapError
 
 
 from seeparklib.openweathermap import openweathermap_json, OpenWeatherMapError