Update procname

This commit is contained in:
Rim 2023-12-18 06:23:56 -05:00
parent 2abafb0a47
commit 38f74dadc3

View File

@ -260,7 +260,7 @@ def show_message(title, message, icon="warning", _return=False, option_1="No", o
main_app.app.after(0, callback)
def launch_T7x_func(path):
procname = "T7x.exe"
procname = "t7x.exe"
try:
if procname in (p.name() for p in psutil.process_iter()):
for proc in psutil.process_iter():
@ -270,7 +270,7 @@ def launch_T7x_func(path):
subprocess.Popen([T7x_path ,"-launch"] , cwd=path)
show_message("Please wait!", "The game has launched in the background it will open up in a sec!", icon="info")
except Exception as e:
show_message("Error: Failed to launch T7x", f"Failed to launch T7x.exe\nMake sure to put in your correct T7x path\n{e}")
show_message("Error: Failed to launch T7x", f"Failed to launch t7x.exe\nMake sure to put in your correct T7x path\n{e}")
def remove_tree(folder_path, show_error=None):
if show_error: