From 4e9251ea265a24e749b7756da2585663e8f85232 Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 20 Apr 2016 17:14:35 +0200 Subject: * config paths as symlinks to common config --- app/php/db/config.json | 1 + app/php/db/config.xml | 2 +- app/python/db.json | 1 + app/python/rcal/db.py | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) create mode 120000 app/php/db/config.json create mode 120000 app/python/db.json (limited to 'app') diff --git a/app/php/db/config.json b/app/php/db/config.json new file mode 120000 index 0000000..89a492f --- /dev/null +++ b/app/php/db/config.json @@ -0,0 +1 @@ +../../../config/db.json \ No newline at end of file diff --git a/app/php/db/config.xml b/app/php/db/config.xml index d07618c..20b1c4c 100644 --- a/app/php/db/config.xml +++ b/app/php/db/config.xml @@ -3,6 +3,6 @@ + config="db/config.json" /> diff --git a/app/python/db.json b/app/python/db.json new file mode 120000 index 0000000..f6ad526 --- /dev/null +++ b/app/python/db.json @@ -0,0 +1 @@ +../../config/db.json \ No newline at end of file diff --git a/app/python/rcal/db.py b/app/python/rcal/db.py index c5b05f6..63561d7 100644 --- a/app/python/rcal/db.py +++ b/app/python/rcal/db.py @@ -13,7 +13,7 @@ class Session(object): def __init__(self): config = json.load( open(path.join(path.dirname( - path.realpath(__file__)), '../../..', 'config', 'db.json'))) + path.realpath(__file__)), '..', 'db.json'))) db_str = url.URL( drivername=config['type'], host=config['host'], -- cgit v1.2.3