@@ -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():
8282def 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 ==================
9089root = tk .Tk ()
9190root .title ("Nuitka GUI niggers" )
92- root .geometry ("600x600 " )
91+ root .geometry ("700x600 " )
9392
9493style = ttk .Style (root )
9594style .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 )
146145ensure_admin ()
147146root .mainloop ()
0 commit comments