euler314 commited on
Commit
8cc36e4
·
verified ·
1 Parent(s): 7229d8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -894,13 +894,13 @@ input('Press Enter to exit...')""",
894
  thread = threading.Thread(target=get_result)
895
  thread.start()
896
 
897
- # Progress simulation with log updates
898
  progress_steps = [
899
  (0.1, "Checking Nuitka installation..."),
900
  (0.15, "Checking MinGW-w64 for Windows targets..." if extension == ".exe" else "Checking environment..."),
901
  (0.2, "Setting up environment..."),
902
  (0.3, "Installing requirements..."),
903
- (0.4, f"Starting {"Windows cross-" if extension == ".exe" else ""}compilation..."),
904
  (0.5, "Processing imports..."),
905
  (0.6, "Optimizing code..."),
906
  (0.7, f"Creating {extension} binary..."),
 
894
  thread = threading.Thread(target=get_result)
895
  thread.start()
896
 
897
+ # Fixed: Progress simulation with proper string formatting
898
  progress_steps = [
899
  (0.1, "Checking Nuitka installation..."),
900
  (0.15, "Checking MinGW-w64 for Windows targets..." if extension == ".exe" else "Checking environment..."),
901
  (0.2, "Setting up environment..."),
902
  (0.3, "Installing requirements..."),
903
+ (0.4, f"Starting {'Windows cross-' if extension == '.exe' else ''}compilation..."),
904
  (0.5, "Processing imports..."),
905
  (0.6, "Optimizing code..."),
906
  (0.7, f"Creating {extension} binary..."),