pyloid 0.18.1__py3-none-any.whl → 0.18.2__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
pyloid/utils.py
CHANGED
@@ -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:
|
@@ -11,8 +11,8 @@ pyloid/pyloid.py,sha256=YKE2a5yZFbBZrtMND2X5I7CVnFRK40NFzDp3kYN-oQg,44091
|
|
11
11
|
pyloid/thread_pool.py,sha256=fKOBb8jMfZn_7crA_fJCno8dObBRZE31EIWaNQ759aw,14616
|
12
12
|
pyloid/timer.py,sha256=RqMsChFUd93cxMVgkHWiIKrci0QDTBgJSTULnAtYT8M,8712
|
13
13
|
pyloid/tray.py,sha256=D12opVEc2wc2T4tK9epaN1oOdeziScsIVNM2uCN7C-A,1710
|
14
|
-
pyloid/utils.py,sha256=
|
15
|
-
pyloid-0.18.
|
16
|
-
pyloid-0.18.
|
17
|
-
pyloid-0.18.
|
18
|
-
pyloid-0.18.
|
14
|
+
pyloid/utils.py,sha256=j8mMpkzNTaRk3yoT7MIxvcQr9ub2LWkdUsua2uMeK9U,3017
|
15
|
+
pyloid-0.18.2.dist-info/LICENSE,sha256=F96EzotgWhhpnQTW2TcdoqrMDir1jyEo6H915tGQ-QE,11524
|
16
|
+
pyloid-0.18.2.dist-info/METADATA,sha256=WP5UQ_t1hxP4Z42sopgRNJ59KGdyFpEr4IDbNDDvWK8,3050
|
17
|
+
pyloid-0.18.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
18
|
+
pyloid-0.18.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|