diff options
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) |