added auto update function (false by default)

This commit is contained in:
TinyTerra
2023-05-14 15:10:17 +02:00
parent 1658c6fe57
commit 4ba9f512b4
+1
View File
@@ -21,6 +21,7 @@ with open(config_path, "r") as f:
if "autoUpdate" not in config:
config["autoUpdate"] = False
# Attempt to update
if config["autoUpdate"] == True:
try:
with subprocess.Popen(["git", "pull"], cwd=cwd_path, stdout=subprocess.PIPE) as p: