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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyloid
3
- Version: 0.18.1
3
+ Version: 0.18.2
4
4
  Summary:
5
5
  Author: aesthetics-of-record
6
6
  Author-email: 111675679+aesthetics-of-record@users.noreply.github.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyloid"
3
- version = "0.18.1"
3
+ version = "0.18.2"
4
4
  description = ""
5
5
  authors = ["aesthetics-of-record <111675679+aesthetics-of-record@users.noreply.github.com>"]
6
6
  readme = "README.md"
@@ -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 getattr(sys, 'frozen', False) or '__compiled__' in globals():
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
- return getattr(sys, 'frozen', False) or '__compiled__' in globals()
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