plugin - small changes

This commit is contained in:
Sergi Delgado Segura
2020-05-05 15:11:36 +02:00
parent 8704dcf2b9
commit b650ba3c26
2 changed files with 7 additions and 9 deletions

View File

@@ -84,7 +84,7 @@ def init_tower():
config = configparser.ConfigParser()
config["general"] = {"max_retries": "5"}
os.makedirs(os.environ["TOWERS_DATA_DIR"])
os.makedirs(os.environ["TOWERS_DATA_DIR"], exist_ok=True)
with open(os.path.join(os.environ["TOWERS_DATA_DIR"], "watchtower.conf"), "w") as configfile:
config.write(configfile)