diff options
author | Luciano Resende <lresende@apache.org> | 2017-01-23 19:57:25 -0800 |
---|---|---|
committer | Luciano Resende <lresende@apache.org> | 2017-01-23 19:57:25 -0800 |
commit | 72324c513db7ec0f5338a1abe04d85642587e618 (patch) | |
tree | f8248529d241a96044918c0c7199723679158631 /python/config.py | |
parent | d592198c0115da2fff47abfc4734b9ba822d454e (diff) | |
download | toree-gateway-72324c513db7ec0f5338a1abe04d85642587e618.tar.gz toree-gateway-72324c513db7ec0f5338a1abe04d85642587e618.tar.bz2 toree-gateway-72324c513db7ec0f5338a1abe04d85642587e618.zip |
Python doc for classes and methods
Diffstat (limited to 'python/config.py')
-rw-r--r-- | python/config.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/python/config.py b/python/config.py index e7e69ea..479f165 100644 --- a/python/config.py +++ b/python/config.py @@ -19,6 +19,16 @@ import os.path import configparser class ConfigManager: + """ + Simple configuration manager + + This expects TOREE_GATEWAY_HOME environment variable + to be set and will look for the config file in + TOREE_GATEWAY_HOME/conf/toree-gateway.properties + + In dev environment, it will fallback to reading + the config file + """ config = configparser.RawConfigParser() homePath = os.getcwd()[:-7] configPath = None |