Skip to content

Commit 70cb44d

Browse files
author
cutiips
committed
fix: Windows compatibility fixes
- Use %APPDATA%\DoctorFill for data/logs dirs on Windows frozen build to avoid write permission issues in Program Files - Move Flask app import to module level in server.py for reliable PyInstaller entrypoint on Windows - Fix CORS origins: replace unsupported wildcard port with explicit localhost URLs (8000, 1420)
1 parent 0a35759 commit 70cb44d

File tree

4 files changed

+2578
-5
lines changed

4 files changed

+2578
-5
lines changed

server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
# Force debug off in bundled mode (prevents Flask reloader double-start)
2020
os.environ.setdefault('DEBUG', 'false')
2121

22+
from src.web.app import main
23+
2224
if __name__ == "__main__":
23-
from src.web.app import main
2425
main()

0 commit comments

Comments
 (0)