diff --git a/config.py b/config.py index 4293d37f68ed1af7c2de66b9b34ff3ed193df828..f9027166c756b7b3d90bb0772dc50cfda14cdbb5 100644 --- a/config.py +++ b/config.py @@ -1,4 +1,7 @@ # Dataset_URL = "https://download.data.grandlyon.com/wfs/grandlyon?SERVICE=WFS&VERSION=2.0.0&request=GetFeature&typename=adr_voie_lieu.adrcomgl&outputFormat=application/json;%20subtype=geojson&SRSNAME=EPSG:4171" +import os + +MYDIR = os.path.dirname(__file__) class Config(object): DEBUG = False @@ -10,8 +13,9 @@ class ProductionConfig(Config): class DevelopementConfig(Config): DEBUG = True - UPLOAD_FOLDER = "/home/sarra/Documents/Doctorat/Python/SemanticLifting/YKWIM/results/" + UPLOAD_FOLDER = MYDIR+"/YKWIM/results/" class TestingConfig(Config): TESTING = True - UPLOAD_FOLDER = "/home/sarra/Documents/Doctorat/Python/SemanticLifting/YKWIM/tests/results/" + UPLOAD_FOLDER = MYDIR+"/YKWIM/tests/results/" + \ No newline at end of file