-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata_extrapolation_gui.py
More file actions
39 lines (28 loc) · 985 Bytes
/
Copy pathdata_extrapolation_gui.py
File metadata and controls
39 lines (28 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
"""Backward-compatible desktop GUI entry point.
The full implementation has moved to `app_desktop.main` for maintainability.
This module re-exports the public API so existing imports keep working.
"""
from __future__ import annotations
import multiprocessing
# Frozen multiprocessing workers must be diverted before GUI imports.
multiprocessing.freeze_support()
from app_desktop import main as _main # noqa: E402
_globals = globals()
_export_names = getattr(_main, "__all__", None)
if _export_names:
_names = list(_export_names)
else:
_names = [name for name in _main.__dict__ if not name.startswith("_")]
__all__: list[str] = []
for _name in _names:
if _name.startswith("_"):
continue
if hasattr(_main, _name):
_globals[_name] = getattr(_main, _name)
__all__.append(_name)
main = _main.main
if "main" not in __all__:
__all__.append("main")
del _globals, _export_names, _names, _name, _main
if __name__ == "__main__":
main()