Skip to content

Commit 45852f6

Browse files
authored
v1.2
1 parent cb3471a commit 45852f6

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

nuitka-gui.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def build_command():
5959
if not output_dir:
6060
output_dir = os.path.dirname(script)
6161

62-
cmd = ["python -m nuitka"]
62+
cmd = [sys.executable, "-m", "nuitka"]
6363
if standalone_var.get(): cmd.append("--standalone")
6464
if onefile_var.get(): cmd.append("--onefile")
6565
if noconsole_var.get(): cmd.append("--windows-console=disable")
@@ -82,14 +82,13 @@ def build_command():
8282
def run_nuitka():
8383
cmd, _ = build_command()
8484
if not cmd: return
85-
full_command = " ".join(cmd)
86-
subprocess.Popen(f'start cmd /k "{full_command}"', shell=True)
87-
print(f"Commande Nuitka : {full_command}")
85+
subprocess.Popen(["cmd", "/k"] + cmd)
86+
print(f"Commande Nuitka : {' '.join(cmd)}")
8887

8988
# ================== GUI ==================
9089
root = tk.Tk()
9190
root.title("Nuitka GUI niggers")
92-
root.geometry("600x600")
91+
root.geometry("700x600")
9392

9493
style = ttk.Style(root)
9594
style.theme_use("clam")
@@ -142,6 +141,6 @@ def run_nuitka():
142141
ttk.Checkbutton(options_frame, text=text, variable=var).pack(anchor="w", pady=2)
143142

144143
# ----- BOUTON COMPILER -----
145-
ttk.Button(root, text="🚀 Compiler", command=run_nuitka).pack(pady=20)
144+
ttk.Button(root, text="Compiler", command=run_nuitka).pack(pady=20)
146145
ensure_admin()
147146
root.mainloop()

0 commit comments

Comments
 (0)