mirror of
https://github.com/aljazceru/python-teos.git
synced 2026-02-18 13:04:33 +01:00
plugin - small changes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user