p3lib 1.1.95__py3-none-any.whl → 1.1.96__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/boot_manager.py CHANGED
@@ -40,7 +40,7 @@ class BootManager(object):
40
40
  @return True if handled , False if not."""
41
41
  handled = False
42
42
  if options.check_auto_start:
43
- BootManager.CheckAutoStartStatus(uio)
43
+ BootManager.CheckAutoStartStatus(uio, appName)
44
44
  handled = True
45
45
 
46
46
  elif options.enable_auto_start:
@@ -48,7 +48,7 @@ class BootManager(object):
48
48
  handled = True
49
49
 
50
50
  elif options.disable_auto_start:
51
- BootManager.DisableAutoStart(uio)
51
+ BootManager.DisableAutoStart(uio, appName)
52
52
  handled = True
53
53
 
54
54
  return handled
@@ -68,15 +68,21 @@ class BootManager(object):
68
68
  bootManager.add(argString=arsString, enableSyslog=enable_syslog)
69
69
 
70
70
  @staticmethod
71
- def DisableAutoStart(uio):
72
- """@brief Enable this program to auto start when the computer on which it is installed starts."""
73
- bootManager = BootManager(uio=uio, ensureRootUser=True)
71
+ def DisableAutoStart(uio, appName):
72
+ """@brief Enable this program to auto start when the computer on which it is installed starts.
73
+ @param uio A UIO instance.
74
+ @param appName The name of the app. This is used as the service name. If not set then
75
+ the name of the initially executed python file is used."""
76
+ bootManager = BootManager(uio=uio, ensureRootUser=True, appName=appName)
74
77
  bootManager.remove()
75
78
 
76
79
  @staticmethod
77
- def CheckAutoStartStatus(uio):
78
- """@brief Check the status of a process previously set to auto start."""
79
- bootManager = BootManager(uio=uio)
80
+ def CheckAutoStartStatus(uio, appName):
81
+ """@brief Check the status of a process previously set to auto start.
82
+ @param uio A UIO instance.
83
+ @param appName The name of the app. This is used as the service name. If not set then
84
+ the name of the initially executed python file is used."""
85
+ bootManager = BootManager(uio=uio, appName=appName)
80
86
  lines = bootManager.getStatus()
81
87
  if lines and len(lines) > 0:
82
88
  for line in lines:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: p3lib
3
- Version: 1.1.95
3
+ Version: 1.1.96
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
@@ -2,7 +2,7 @@ p3lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  p3lib/ate.py,sha256=_BiqMUYNAlp4O8MkP_PAUe62Bzd8dzV4Ipv62OFS6Ok,4759
3
3
  p3lib/bokeh_auth.py,sha256=zi_Hty2WkCJVNQ4sINNRo5FBXujuJky9phyoF6M55ms,15180
4
4
  p3lib/bokeh_gui.py,sha256=55sajP_x9O1lE0uP3w3-T5f2oMzk7jSolLqxlEdLeLg,40245
5
- p3lib/boot_manager.py,sha256=h8IOvhQA8z-4S3smNHGYII55m5bzmQjcmzfPEJedxb8,18921
5
+ p3lib/boot_manager.py,sha256=3Jlpg1Dn-Od9o3isZ-E-Tu_1-YZwmpELan7nFIrpJ_I,19425
6
6
  p3lib/conduit.py,sha256=jPkjdtyCx2I6SFqcEo8y2g7rgnZ-jNY7oCuYIETzT5Q,6046
7
7
  p3lib/database_if.py,sha256=XKu1w3zftGbj4Rh54wrWJnoCtqHkhCzJUPN2S70XIKg,11915
8
8
  p3lib/helper.py,sha256=xTKPgpziwr4zyaoc0sjZRFr0M91fo7Tok_nSAvtiTZE,12020
@@ -15,8 +15,8 @@ p3lib/pconfig.py,sha256=82rX7zvJVbSFtYYHvhj9I6GTdpjf9v73fNs9WQE-5ik,35388
15
15
  p3lib/ssh.py,sha256=OyoAQ_h1L2RfkjTAChDrvLFfl4Fe_gBNdX5rvK-wKiw,42125
16
16
  p3lib/table_plot.py,sha256=RPncwVlGUkkx5Fw0dHQedXo0TSPlTi__VrJBDzaMsuI,32116
17
17
  p3lib/uio.py,sha256=Aaxc99XiE3d2f9vLjaN-bZsckoNxay5t0ujdK6PXGrw,23265
18
- p3lib-1.1.95.dist-info/LICENSE,sha256=igqTy5u0kVWM1n-NUZMvAlinY6lVjAXKoag0okkS8V8,1067
19
- p3lib-1.1.95.dist-info/METADATA,sha256=jbNsDi4Z4iilqPmYlfxw82s4Xz2gKTytMiCobh7m6Pw,918
20
- p3lib-1.1.95.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
21
- p3lib-1.1.95.dist-info/top_level.txt,sha256=SDCpXYh-19yCFp4Z8ZK4B-3J4NvTCJElZ42NPgcR6-U,6
22
- p3lib-1.1.95.dist-info/RECORD,,
18
+ p3lib-1.1.96.dist-info/LICENSE,sha256=igqTy5u0kVWM1n-NUZMvAlinY6lVjAXKoag0okkS8V8,1067
19
+ p3lib-1.1.96.dist-info/METADATA,sha256=9J2tVWSBvTAoeO9QPgMjgOlaLiYeDLgG_E6_rR39NTA,918
20
+ p3lib-1.1.96.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
21
+ p3lib-1.1.96.dist-info/top_level.txt,sha256=SDCpXYh-19yCFp4Z8ZK4B-3J4NvTCJElZ42NPgcR6-U,6
22
+ p3lib-1.1.96.dist-info/RECORD,,
File without changes