pyloid 0.17.4__tar.gz → 0.18.1__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {pyloid-0.17.4 → pyloid-0.18.1}/PKG-INFO +3 -3
- {pyloid-0.17.4 → pyloid-0.18.1}/pyproject.toml +3 -3
- {pyloid-0.17.4 → pyloid-0.18.1}/src/pyloid/utils.py +13 -5
- {pyloid-0.17.4 → pyloid-0.18.1}/LICENSE +0 -0
- {pyloid-0.17.4 → pyloid-0.18.1}/README.md +0 -0
- {pyloid-0.17.4 → pyloid-0.18.1}/src/pyloid/__init__.py +0 -0
- {pyloid-0.17.4 → pyloid-0.18.1}/src/pyloid/api.py +0 -0
- {pyloid-0.17.4 → pyloid-0.18.1}/src/pyloid/autostart.py +0 -0
- {pyloid-0.17.4 → pyloid-0.18.1}/src/pyloid/browser_window.py +0 -0
- {pyloid-0.17.4 → pyloid-0.18.1}/src/pyloid/custom/titlebar.py +0 -0
- {pyloid-0.17.4 → pyloid-0.18.1}/src/pyloid/filewatcher.py +0 -0
- {pyloid-0.17.4 → pyloid-0.18.1}/src/pyloid/js_api/event_api.py +0 -0
- {pyloid-0.17.4 → pyloid-0.18.1}/src/pyloid/js_api/window_api.py +0 -0
- {pyloid-0.17.4 → pyloid-0.18.1}/src/pyloid/monitor.py +0 -0
- {pyloid-0.17.4 → pyloid-0.18.1}/src/pyloid/pyloid.py +0 -0
- {pyloid-0.17.4 → pyloid-0.18.1}/src/pyloid/thread_pool.py +0 -0
- {pyloid-0.17.4 → pyloid-0.18.1}/src/pyloid/timer.py +0 -0
- {pyloid-0.17.4 → pyloid-0.18.1}/src/pyloid/tray.py +0 -0
@@ -1,16 +1,16 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pyloid
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.18.1
|
4
4
|
Summary:
|
5
5
|
Author: aesthetics-of-record
|
6
6
|
Author-email: 111675679+aesthetics-of-record@users.noreply.github.com
|
7
|
-
Requires-Python: >=3.9,<3.
|
7
|
+
Requires-Python: >=3.9,<3.14
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
9
9
|
Classifier: Programming Language :: Python :: 3.9
|
10
10
|
Classifier: Programming Language :: Python :: 3.10
|
11
11
|
Classifier: Programming Language :: Python :: 3.11
|
12
12
|
Classifier: Programming Language :: Python :: 3.12
|
13
|
-
Requires-Dist: pyside6 (>=6.8.
|
13
|
+
Requires-Dist: pyside6 (>=6.8.1,<7.0.0)
|
14
14
|
Description-Content-Type: text/markdown
|
15
15
|
|
16
16
|
# Pyloid 👋
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "pyloid"
|
3
|
-
version = "0.
|
3
|
+
version = "0.18.1"
|
4
4
|
description = ""
|
5
5
|
authors = ["aesthetics-of-record <111675679+aesthetics-of-record@users.noreply.github.com>"]
|
6
6
|
readme = "README.md"
|
@@ -9,8 +9,8 @@ packages = [
|
|
9
9
|
]
|
10
10
|
|
11
11
|
[tool.poetry.dependencies]
|
12
|
-
python = ">=3.9,<3.
|
13
|
-
pyside6 = "^6.8.
|
12
|
+
python = ">=3.9,<3.14"
|
13
|
+
pyside6 = "^6.8.1"
|
14
14
|
|
15
15
|
|
16
16
|
[build-system]
|
@@ -24,13 +24,21 @@ 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):
|
28
|
-
#
|
29
|
-
|
27
|
+
if getattr(sys, 'frozen', False) or '__compiled__' in globals():
|
28
|
+
# Nuitka
|
29
|
+
if hasattr(sys, '_MEIPASS'):
|
30
|
+
# PyInstaller
|
31
|
+
base_path = sys._MEIPASS
|
32
|
+
else:
|
33
|
+
# Nuitka의 경우 실행 파일이 있는 디렉토리를 기준으로 함
|
34
|
+
base_path = os.path.dirname(os.path.abspath(sys.argv[0]))
|
35
|
+
|
36
|
+
return os.path.join(base_path, path) if path else base_path
|
30
37
|
else:
|
31
|
-
#
|
38
|
+
# 일반 Python 스크립트로 실행 중일 때
|
32
39
|
return None
|
33
40
|
|
41
|
+
|
34
42
|
def is_production() -> bool:
|
35
43
|
"""
|
36
44
|
Checks if the current environment is a production environment.
|
@@ -48,7 +56,7 @@ def is_production() -> bool:
|
|
48
56
|
>>> else:
|
49
57
|
>>> print("Not in production environment.")
|
50
58
|
"""
|
51
|
-
return getattr(sys, 'frozen', False)
|
59
|
+
return getattr(sys, 'frozen', False) or '__compiled__' in globals()
|
52
60
|
|
53
61
|
|
54
62
|
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
|