From 1403646426cef17505f8d0528bc8a78076533590 Mon Sep 17 00:00:00 2001 From: WorldTeacher Date: Thu, 9 Jan 2025 12:52:34 +0100 Subject: [PATCH] small changes --- main_dev.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/main_dev.py b/main_dev.py index 58344ac..f79d0a8 100644 --- a/main_dev.py +++ b/main_dev.py @@ -1,8 +1,15 @@ # from src.ui.main_ui import launch -from updater import Update - +from src.updater import Update +import os if __name__ == "__main__": Update() + with open("config/.updater", "r") as f: + contents = f.read().splitlines() + command = [line for line in contents if "command" in line][0].split(":")[1] + if "~" in command: + command = command.replace("~", str(os.getcwd())) + os.system(command) + # launch("--debug")