mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-07 17:24:17 +00:00
dynamically find config file path for #108
This commit is contained in:
@@ -87,6 +87,8 @@ class Cfg:
|
||||
@profile: chosen profile
|
||||
@debug: enable debug
|
||||
"""
|
||||
if not cfgpath:
|
||||
raise ValueError('config file path undefined')
|
||||
if not os.path.exists(cfgpath):
|
||||
raise ValueError('config file does not exist: {}'.format(cfgpath))
|
||||
# make sure to have an absolute path to config file
|
||||
|
||||
Reference in New Issue
Block a user