p3lib 1.1.114__py2.py3-none-any.whl → 1.1.115__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
p3lib/ngt.py
CHANGED
@@ -13,6 +13,8 @@ from time import sleep
|
|
13
13
|
from queue import Queue
|
14
14
|
from time import time, strftime, localtime
|
15
15
|
|
16
|
+
from p3lib.helper import getProgramVersion
|
17
|
+
|
16
18
|
from nicegui import ui
|
17
19
|
|
18
20
|
class TabbedNiceGui(object):
|
@@ -78,29 +80,7 @@ class TabbedNiceGui(object):
|
|
78
80
|
def GetProgramVersion():
|
79
81
|
"""@brief Get the program version from the poetry pyproject.toml file.
|
80
82
|
@return The version of the installed program (string value)."""
|
81
|
-
|
82
|
-
if not os.path.isfile(poetryConfigFile):
|
83
|
-
poetryConfigFile = os.path.join(TabbedNiceGui.LOCAL_PATH, ".." + os.sep + TabbedNiceGui.POETRY_CONFIG_FILE)
|
84
|
-
poetryConfigFile2 = poetryConfigFile
|
85
|
-
if not os.path.isfile(poetryConfigFile):
|
86
|
-
cwd = os.getcwd()
|
87
|
-
poetryConfigFile = os.path.join(cwd, TabbedNiceGui.POETRY_CONFIG_FILE)
|
88
|
-
if not os.path.isfile(poetryConfigFile):
|
89
|
-
raise Exception(f"{poetryConfigFile}, {poetryConfigFile2} and {poetryConfigFile} not found.")
|
90
|
-
|
91
|
-
programVersion = None
|
92
|
-
with open(poetryConfigFile, 'r') as fd:
|
93
|
-
lines = fd.readlines()
|
94
|
-
for line in lines:
|
95
|
-
line=line.strip("\r\n")
|
96
|
-
if line.startswith('version'):
|
97
|
-
elems = line.split("=")
|
98
|
-
if len(elems) == 2:
|
99
|
-
programVersion = elems[1].strip('" ')
|
100
|
-
break
|
101
|
-
if programVersion is None:
|
102
|
-
raise Exception(f"Failed to extract program version from '{line}' line of {poetryConfigFile} file.")
|
103
|
-
return programVersion
|
83
|
+
return getProgramVersion()
|
104
84
|
|
105
85
|
def __init__(self, debugEnabled, logPath=None):
|
106
86
|
"""@brief Constructor
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: p3lib
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.115
|
4
4
|
Summary: A group of python modules for networking, plotting data, config storage, automating boot scripts, ssh access and user input output.
|
5
5
|
Home-page: https://github.com/pjaos/p3lib
|
6
6
|
License: MIT
|
@@ -13,12 +13,12 @@ p3lib/login.html,sha256=DADTJGuvWQ-LTO4X6SaFdqK7JMW03DAa3lRieGD0d6g,2748
|
|
13
13
|
p3lib/mqtt_rpc.py,sha256=6LmFA1kR4HSJs9eWbOJORRHNY01L_lHWjvtE2fmY8P8,10511
|
14
14
|
p3lib/netif.py,sha256=3QV5OGdHhELIf4MBj6mx5MNCtVeZ7JXoNEkeu4KzCaE,9796
|
15
15
|
p3lib/netplotly.py,sha256=PMDx-w1jtRVW6Od5u_kuKbBxNpTS_Y88mMF60puMxLM,9363
|
16
|
-
p3lib/ngt.py,sha256=
|
16
|
+
p3lib/ngt.py,sha256=NLZy-obwpDKYP5dcW8A6aNGS55t5yqsafOpJ0iVThLw,38883
|
17
17
|
p3lib/pconfig.py,sha256=wGC6UJAIBksRjwKTfaw3Y6vAMkgey0QC2nhkCtqj1MQ,37738
|
18
18
|
p3lib/ssh.py,sha256=OyoAQ_h1L2RfkjTAChDrvLFfl4Fe_gBNdX5rvK-wKiw,42125
|
19
19
|
p3lib/table_plot.py,sha256=RPncwVlGUkkx5Fw0dHQedXo0TSPlTi__VrJBDzaMsuI,32116
|
20
20
|
p3lib/uio.py,sha256=Aaxc99XiE3d2f9vLjaN-bZsckoNxay5t0ujdK6PXGrw,23265
|
21
|
-
p3lib-1.1.
|
22
|
-
p3lib-1.1.
|
23
|
-
p3lib-1.1.
|
24
|
-
p3lib-1.1.
|
21
|
+
p3lib-1.1.115.dist-info/LICENSE,sha256=igqTy5u0kVWM1n-NUZMvAlinY6lVjAXKoag0okkS8V8,1067
|
22
|
+
p3lib-1.1.115.dist-info/METADATA,sha256=Rmm1RFbcyjFCUu00p1Z7xWZXhn9YtnuNuINBNeomVL0,1319
|
23
|
+
p3lib-1.1.115.dist-info/WHEEL,sha256=IrRNNNJ-uuL1ggO5qMvT1GGhQVdQU54d6ZpYqEZfEWo,92
|
24
|
+
p3lib-1.1.115.dist-info/RECORD,,
|
File without changes
|
File without changes
|