Commit a402126f authored by Sean Leavey's avatar Sean Leavey

Fix bug with configuration directories

parent 385bb4fe
Pipeline #38911 passed with stages
in 4 minutes and 52 seconds
......@@ -76,6 +76,14 @@ class BaseConfig(ConfigParser, metaclass=SingletonAbstractMeta):
# copy default
source = pkg_resources.resource_filename(__name__, self.DEFAULT_USER_CONFIG_FILENAME)
destination = self.get_user_config_filepath()
config_dir = os.path.dirname(destination)
if not os.path.isdir(config_dir):
# make directory tree
# do copy
shutil.copyfile(source, destination)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment