Conditions | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | """Configuration module.""" |
||
26 | 1 | @classmethod |
|
27 | def get_config_path(cls): |
||
28 | 1 | path = os.environ.get(cls.config_path_variable, '') |
|
29 | 1 | if not path: |
|
30 | 1 | raise InvalidConfig('Could not find config file, please set ' |
|
31 | 'environment variable $%s.' % |
||
32 | cls.config_path_variable) |
||
33 | 1 | return path |
|
34 | |||
35 |