pyloid 0.18.1__tar.gz → 0.18.2__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {pyloid-0.18.1 → pyloid-0.18.2}/PKG-INFO +1 -1
- {pyloid-0.18.1 → pyloid-0.18.2}/pyproject.toml +1 -1
- {pyloid-0.18.1 → pyloid-0.18.2}/src/pyloid/utils.py +6 -2
- {pyloid-0.18.1 → pyloid-0.18.2}/LICENSE +0 -0
- {pyloid-0.18.1 → pyloid-0.18.2}/README.md +0 -0
- {pyloid-0.18.1 → pyloid-0.18.2}/src/pyloid/__init__.py +0 -0
- {pyloid-0.18.1 → pyloid-0.18.2}/src/pyloid/api.py +0 -0
- {pyloid-0.18.1 → pyloid-0.18.2}/src/pyloid/autostart.py +0 -0
- {pyloid-0.18.1 → pyloid-0.18.2}/src/pyloid/browser_window.py +0 -0
- {pyloid-0.18.1 → pyloid-0.18.2}/src/pyloid/custom/titlebar.py +0 -0
- {pyloid-0.18.1 → pyloid-0.18.2}/src/pyloid/filewatcher.py +0 -0
- {pyloid-0.18.1 → pyloid-0.18.2}/src/pyloid/js_api/event_api.py +0 -0
- {pyloid-0.18.1 → pyloid-0.18.2}/src/pyloid/js_api/window_api.py +0 -0
- {pyloid-0.18.1 → pyloid-0.18.2}/src/pyloid/monitor.py +0 -0
- {pyloid-0.18.1 → pyloid-0.18.2}/src/pyloid/pyloid.py +0 -0
- {pyloid-0.18.1 → pyloid-0.18.2}/src/pyloid/thread_pool.py +0 -0
- {pyloid-0.18.1 → pyloid-0.18.2}/src/pyloid/timer.py +0 -0
- {pyloid-0.18.1 → pyloid-0.18.2}/src/pyloid/tray.py +0 -0
@@ -24,7 +24,7 @@ def get_production_path(path: Optional[str] = None) -> Optional[str]:
|
|
24
24
|
>>> else:
|
25
25
|
>>> print("Not in a production environment.")
|
26
26
|
"""
|
27
|
-
if
|
27
|
+
if is_production():
|
28
28
|
# Nuitka
|
29
29
|
if hasattr(sys, '_MEIPASS'):
|
30
30
|
# PyInstaller
|
@@ -56,7 +56,11 @@ def is_production() -> bool:
|
|
56
56
|
>>> else:
|
57
57
|
>>> print("Not in production environment.")
|
58
58
|
"""
|
59
|
-
|
59
|
+
# Nuitka 환경 확인을 추가
|
60
|
+
if '__compiled__' in globals():
|
61
|
+
return True
|
62
|
+
# PyInstaller 환경 확인
|
63
|
+
return getattr(sys, 'frozen', False)
|
60
64
|
|
61
65
|
|
62
66
|
def get_platform() -> str:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|