Skip to content
Commit f4d916ba authored by Stefy Lanza (nextime / spora )'s avatar Stefy Lanza (nextime / spora )
Browse files

Add PyInstaller compatibility for diskpart script location handling

- 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
parent 57273887
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment