diff options
author | Florian Zeitz <florob@babelmonkeys.de> | 2016-08-16 01:57:01 +0200 |
---|---|---|
committer | Florian Zeitz <florob@babelmonkeys.de> | 2016-08-21 12:08:31 +0200 |
commit | 0319be21855f9c9f4d618552ddde2a852d56869a (patch) | |
tree | f9fa1e0f169d8d8623e37e26872c722a06dd2ae9 /example-scripts/voctomidi/lib/config.py | |
parent | 58706980c493676bb60db016e4d195124abb648d (diff) |
Add voctomidi for controlling voctocore via MIDI
Diffstat (limited to 'example-scripts/voctomidi/lib/config.py')
-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) |