config.py changed
diff --git a/config.py b/config.py
index e77058f..6dd1a9b 100644
--- a/config.py
+++ b/config.py
@@ -13,6 +13,10 @@
parser = argparse.ArgumentParser(description="config file name")
parser.add_argument("-p", "--path")
+parser.add_argument("-b", "--basedir")
+parser.add_argument("-t", "--testpath")
+parser.add_argument("-d", "--database")
+parser.add_argument("-c", "--chartpath")
config = parser.parse_args(sys.argv[1:])
path = "config.yaml"
@@ -27,4 +31,16 @@
DATABASE_URI = cfg_dict['paths']['DATABASE_URI']
CHARTS_IMG_PATH = cfg_dict['paths']['CHARTS_IMG_PATH']
+if not config.basedir is None:
+ basedir = config.basedir
+
+if not config.testpath is None:
+ TEST_PATH = config.testpath
+
+if not config.database is None:
+ DATABASE_URI = config.database
+
+if not config.chartpath is None:
+ CHARTS_IMG_PATH = config.chartpath
+