Skip to content

Commit bb4d1f1

Browse files
authored
Update configure.py
1 parent e11e23d commit bb4d1f1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

configure.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -477,11 +477,7 @@ def on_save_click(self):
477477

478478
def on_saverun_click(self):
479479
self.save_config_values()
480-
kwargs = {}
481-
if hasattr(subprocess, "DETACHED_PROCESS"):
482-
kwargs["creationflags"] = subprocess.DETACHED_PROCESS
483-
subprocess.Popen([sys.executable, os.path.join(os.getcwd(), "main.py")], **kwargs)
484-
# subprocess.Popen(f'"{MAIN_DIRECTORY}{glob.glob("main.*", root_dir=MAIN_DIRECTORY)[0]}"', shell=True)
480+
subprocess.Popen(f'"{MAIN_DIRECTORY}{glob.glob("main.*", root_dir=MAIN_DIRECTORY)[0]}"', shell=True)
485481
self.window.destroy()
486482

487483
def on_brightness_change(self, e=None):

0 commit comments

Comments
 (0)