pyhw 0.6.7__py3-none-any.whl → 0.6.8__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- pyhw/backend/shell/unix.py +0 -1
- pyhw/library/lib/iokitGPULib.dylib +0 -0
- pyhw/library/lib/iokitHostLib.dylib +0 -0
- pyhw/pyhwUtil/pyhwUtil.py +13 -5
- {pyhw-0.6.7.dist-info → pyhw-0.6.8.dist-info}/METADATA +1 -1
- {pyhw-0.6.7.dist-info → pyhw-0.6.8.dist-info}/RECORD +10 -9
- {pyhw-0.6.7.dist-info → pyhw-0.6.8.dist-info}/LICENSE +0 -0
- {pyhw-0.6.7.dist-info → pyhw-0.6.8.dist-info}/WHEEL +0 -0
- {pyhw-0.6.7.dist-info → pyhw-0.6.8.dist-info}/entry_points.txt +0 -0
- {pyhw-0.6.7.dist-info → pyhw-0.6.8.dist-info}/top_level.txt +0 -0
pyhw/backend/shell/unix.py
CHANGED
Binary file
|
Binary file
|
pyhw/pyhwUtil/pyhwUtil.py
CHANGED
@@ -54,8 +54,11 @@ class DataStringProcessor:
|
|
54
54
|
@staticmethod
|
55
55
|
def __getENV() -> int:
|
56
56
|
if getOS() == "linux":
|
57
|
-
|
58
|
-
|
57
|
+
try:
|
58
|
+
_, columns_str = os.popen('stty size', 'r').read().split()
|
59
|
+
columns = int(columns_str)
|
60
|
+
except:
|
61
|
+
columns = 80 # default terminal size is 80 columns
|
59
62
|
else:
|
60
63
|
# macOS default terminal size is 80 columns
|
61
64
|
columns = 80
|
@@ -184,9 +187,14 @@ def selectOSLogo(os_id: str):
|
|
184
187
|
pass
|
185
188
|
else:
|
186
189
|
return "linux"
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
+
try:
|
191
|
+
rows_str, columns_str = os.popen('stty size', 'r').read().split()
|
192
|
+
rows = int(rows_str)
|
193
|
+
columns = int(columns_str)
|
194
|
+
except:
|
195
|
+
# Default terminal size is 24 rows and 80 columns
|
196
|
+
rows = 24
|
197
|
+
columns = 80
|
190
198
|
if columns <= 80:
|
191
199
|
if os_id in ["fedora", "ubuntu"]:
|
192
200
|
return f"{os_id}_small"
|
@@ -47,7 +47,7 @@ pyhw/backend/os/osBase.py,sha256=AA17HIwmWy7E6nCtqbojTNsHKtcNuehf51FxGcfXu7A,462
|
|
47
47
|
pyhw/backend/os/osInfo.py,sha256=iLPc7INFHH3izascwooj4JBVgvBsSgVPXWBlFXG47mQ,378
|
48
48
|
pyhw/backend/shell/__init__.py,sha256=SeQ7OLNSl_V1JCCWnJGjLilAWiSe9e5kgsMEt63TMS0,62
|
49
49
|
pyhw/backend/shell/shellBase.py,sha256=mylNazVtTbCSzus-IPe1QwnuIGSFNP-z5vYKwTIl_yg,377
|
50
|
-
pyhw/backend/shell/unix.py,sha256=
|
50
|
+
pyhw/backend/shell/unix.py,sha256=Vt2wSxAIrzN679v0MjJwBoK6L12OqZOichociFZ9lw8,2109
|
51
51
|
pyhw/backend/title/__init__.py,sha256=l6_WqreSBeK7krapCrbrr4ndnydrXB1aZ50Ve-beV_w,62
|
52
52
|
pyhw/backend/title/titleBase.py,sha256=pcnkiNn9N69yc4iicAmpMpC6G7HUMyGCh0V1jjGIP_c,495
|
53
53
|
pyhw/backend/title/unix.py,sha256=9B-zLE8yhlWBnJ-6Aa-DmFmgMV9KdvvNU40drJIaNck,837
|
@@ -77,15 +77,16 @@ pyhw/frontend/logo/ascii/macOS.pyhw,sha256=HBGROtBb7wrNtRqAQ9ND7zxK0l17BRsmpgc2d
|
|
77
77
|
pyhw/frontend/logo/ascii/raspbian.pyhw,sha256=jEl6WMKF-FGx359ipQ1kzweUJS-NuauYQCFaYime4PQ,159
|
78
78
|
pyhw/frontend/logo/ascii/ubuntu.pyhw,sha256=l-Q0PfutxXYMwTojqeiM88063x4V0RBkZUHmi6YdsNc,833
|
79
79
|
pyhw/frontend/logo/ascii/ubuntu_small.pyhw,sha256=Xf8LSZdZUu9aEG3efhb1FUlUEuJ-3UztcIOJISpKhPw,229
|
80
|
-
pyhw/library/lib/iokitGPULib.dylib,sha256=
|
80
|
+
pyhw/library/lib/iokitGPULib.dylib,sha256=18A4SyThKQvzEEOijeWb4XsgXO-iTFYGa0XtrDoBHjY,154808
|
81
|
+
pyhw/library/lib/iokitHostLib.dylib,sha256=PKNLMhHwB6-sKDaeo3izbPR88OgzjuRGaLV0NvNWVRk,149256
|
81
82
|
pyhw/pyhwException/__init__.py,sha256=8JsFvtF13g0Y5t4z9fRndDXtfCzuBM59jDf6PhWSFSk,220
|
82
83
|
pyhw/pyhwException/pyhwException.py,sha256=wxuzFQa9g7XB1q9TUKO_55lw7wMEJMpzG8w1GVTFVa0,197
|
83
84
|
pyhw/pyhwUtil/__init__.py,sha256=diIqlNUBfuHu-2VAOJk5nipGLafnWxR3chAAOmX8QRo,250
|
84
|
-
pyhw/pyhwUtil/pyhwUtil.py,sha256=
|
85
|
+
pyhw/pyhwUtil/pyhwUtil.py,sha256=4qO3Ohc67U0TEXEEOiQpic7aqgeHDsc9-QhuG65j17w,6211
|
85
86
|
pyhw/pyhwUtil/sysctlUtil.py,sha256=S-rUvqi7ZrMyMouIhxlyHEQ4agM7sCT1Y7uzs3Hu5-o,841
|
86
|
-
pyhw-0.6.
|
87
|
-
pyhw-0.6.
|
88
|
-
pyhw-0.6.
|
89
|
-
pyhw-0.6.
|
90
|
-
pyhw-0.6.
|
91
|
-
pyhw-0.6.
|
87
|
+
pyhw-0.6.8.dist-info/LICENSE,sha256=hJs6RBqSVCexbTsalkMLNFI5t06kekQEsSVaOt_-yLs,1497
|
88
|
+
pyhw-0.6.8.dist-info/METADATA,sha256=IWl0AR6pOJrrwgd_7wMo3NBtEJF3h4b9Hlt_CnneGjY,5225
|
89
|
+
pyhw-0.6.8.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
|
90
|
+
pyhw-0.6.8.dist-info/entry_points.txt,sha256=q-AB8im_QahpmNrmy4aPTJRGi0LlbNlnI3kF7s6pKss,44
|
91
|
+
pyhw-0.6.8.dist-info/top_level.txt,sha256=7Inxvxt1TngEricKZEex9_WJZS3DbKYFUXDz4v5WHYU,5
|
92
|
+
pyhw-0.6.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|