• Stefy Lanza (nextime / spora )'s avatar
    Add PyInstaller compatibility for diskpart script location handling · f4d916ba
    Stefy Lanza (nextime / spora ) authored
    - Detect if running as PyInstaller executable using sys.frozen
    - Use different directory priority order for PyInstaller vs development:
      - PyInstaller: prioritize user home directory and executable location
      - Development: prioritize current working directory
    - Include executable directory (sys.executable) as fallback for PyInstaller
    - Ensures diskpart script creation works reliably in both scenarios
    - Addresses file access issues when running as compiled executable
    f4d916ba
usb_creator_gui.py 36.8 KB