p3lib 1.1.96__tar.gz → 1.1.97__tar.gz
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-1.1.96 → p3lib-1.1.97}/PKG-INFO +1 -1
- {p3lib-1.1.96 → p3lib-1.1.97}/setup.cfg +1 -1
- {p3lib-1.1.96 → p3lib-1.1.97}/src/p3lib/boot_manager.py +16 -18
- {p3lib-1.1.96 → p3lib-1.1.97}/src/p3lib.egg-info/PKG-INFO +1 -1
- {p3lib-1.1.96 → p3lib-1.1.97}/LICENSE +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/README.md +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/pyproject.toml +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/src/p3lib/__init__.py +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/src/p3lib/ate.py +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/src/p3lib/bokeh_auth.py +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/src/p3lib/bokeh_gui.py +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/src/p3lib/conduit.py +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/src/p3lib/database_if.py +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/src/p3lib/helper.py +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/src/p3lib/json_networking.py +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/src/p3lib/mqtt_rpc.py +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/src/p3lib/netif.py +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/src/p3lib/netplotly.py +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/src/p3lib/ngt.py +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/src/p3lib/pconfig.py +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/src/p3lib/ssh.py +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/src/p3lib/table_plot.py +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/src/p3lib/uio.py +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/src/p3lib.egg-info/SOURCES.txt +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/src/p3lib.egg-info/dependency_links.txt +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/src/p3lib.egg-info/requires.txt +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/src/p3lib.egg-info/top_level.txt +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/tests/test_conduit.py +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/tests/test_json_networking.py +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/tests/test_netif.py +0 -0
- {p3lib-1.1.96 → p3lib-1.1.97}/tests/test_ssh.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: p3lib
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.97
|
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
|
Author: Paul Austen
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[metadata]
|
2
2
|
name = p3lib
|
3
|
-
version = 1.1.
|
3
|
+
version = 1.1.97
|
4
4
|
author = Paul Austen
|
5
5
|
author_email = pausten.os@gmail.com
|
6
6
|
description = A group of python modules for networking, plotting data, config storage, automating boot scripts, ssh access and user input output.
|
@@ -275,25 +275,18 @@ class LinuxBootManager(object):
|
|
275
275
|
if not os.path.isdir(exePath):
|
276
276
|
self._fatalError("{} path not found".format(exePath))
|
277
277
|
|
278
|
-
|
279
|
-
if
|
280
|
-
|
281
|
-
|
282
|
-
# Else we use the initially executed python file.
|
283
|
-
else:
|
278
|
+
appName = os.path.basename(exeFile)
|
279
|
+
if len(appName) == 0:
|
280
|
+
self._fatalError("No app found to execute.")
|
284
281
|
|
285
|
-
|
286
|
-
|
287
|
-
|
282
|
+
absApp = os.path.join(exePath, appName)
|
283
|
+
if not os.path.isfile( absApp ):
|
284
|
+
self._fatalError("{} file not found.".format(absApp) )
|
288
285
|
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
appName = appName.replace(".py", "")
|
294
|
-
if self._rootMode:
|
295
|
-
# We can only save to /var/log/ is we are root user.
|
296
|
-
self._logFile = os.path.join(LinuxBootManager.LOG_PATH, appName)
|
286
|
+
appName = appName.replace(".py", "")
|
287
|
+
if self._rootMode:
|
288
|
+
# We can only save to /var/log/ is we are root user.
|
289
|
+
self._logFile = os.path.join(LinuxBootManager.LOG_PATH, appName)
|
297
290
|
|
298
291
|
return (appName, absApp)
|
299
292
|
|
@@ -322,7 +315,12 @@ class LinuxBootManager(object):
|
|
322
315
|
|
323
316
|
appName, absApp = self._getApp()
|
324
317
|
|
325
|
-
|
318
|
+
if self._appName:
|
319
|
+
serviceName = self._appName
|
320
|
+
else:
|
321
|
+
serviceName = appName
|
322
|
+
|
323
|
+
serviceFile = self._getServiceFile(serviceName)
|
326
324
|
|
327
325
|
lines = []
|
328
326
|
lines.append("[Unit]")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: p3lib
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.97
|
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
|
Author: Paul Austen
|
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
|
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
|