Load config.ini from directory where code's located instead of CWD
This commit is contained in:
parent
4118e4c781
commit
c147b56747
@ -91,7 +91,7 @@ p = inflect.engine()
|
||||
ini_defaults = []
|
||||
internal_defaults = {default["key"]: default["value"] for default in CONST.CFG_KNOWN_DEFAULTS}
|
||||
config = ConfigParser(defaults=internal_defaults)
|
||||
config.read(CONST.CFG_DEFAULT_FILENAME)
|
||||
config.read(CONST.CFG_DEFAULT_ABS_PATH)
|
||||
ignored_target_file_exts_str = config.get(config.default_section, "ignored_target_file_exts")
|
||||
ignored_target_file_exts = re.split(r""",\s?|\s""", ignored_target_file_exts_str)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user