diff options
author | MaZderMind <git@mazdermind.de> | 2016-08-21 21:02:34 +0200 |
---|---|---|
committer | MaZderMind <git@mazdermind.de> | 2016-08-21 21:02:34 +0200 |
commit | d4506ffc6e2b91b2aa18f4cca25b319a7f551ad3 (patch) | |
tree | f9fa1e0f169d8d8623e37e26872c722a06dd2ae9 /example-scripts/voctomidi/lib | |
parent | 7ce3b12e4a76d1926077d7efa57e5e9d3538de33 (diff) | |
parent | 0319be21855f9c9f4d618552ddde2a852d56869a (diff) |
Merge branch 'Florob-voctomidi'
Diffstat (limited to 'example-scripts/voctomidi/lib')
-rw-r--r-- | example-scripts/voctomidi/lib/config.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/example-scripts/voctomidi/lib/config.py b/example-scripts/voctomidi/lib/config.py new file mode 100644 index 0000000..44dd8da --- /dev/null +++ b/example-scripts/voctomidi/lib/config.py @@ -0,0 +1,16 @@ +import os.path +from configparser import SafeConfigParser + +__all__ = ['Config'] + +modulepath = os.path.dirname(os.path.realpath(__file__)) +files = [ + os.path.join(modulepath, '../default-config.ini'), + os.path.join(modulepath, '../config.ini'), + '/etc/voctomix/voctomidi.ini', + '/etc/voctomidi.ini', + os.path.expanduser('~/.voctomidi.ini'), +] + +Config = SafeConfigParser() +Config.read(files) |