p3lib 1.1.99__py3-none-any.whl → 1.1.100__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/pconfig.py +4 -4
- {p3lib-1.1.99.dist-info → p3lib-1.1.100.dist-info}/METADATA +1 -1
- {p3lib-1.1.99.dist-info → p3lib-1.1.100.dist-info}/RECORD +6 -6
- {p3lib-1.1.99.dist-info → p3lib-1.1.100.dist-info}/LICENSE +0 -0
- {p3lib-1.1.99.dist-info → p3lib-1.1.100.dist-info}/WHEEL +0 -0
- {p3lib-1.1.99.dist-info → p3lib-1.1.100.dist-info}/top_level.txt +0 -0
p3lib/pconfig.py
CHANGED
@@ -338,7 +338,7 @@ class ConfigManager(object):
|
|
338
338
|
configPath = configPath.strip()
|
339
339
|
|
340
340
|
return join( configPath, cfgFilename )
|
341
|
-
|
341
|
+
|
342
342
|
def __init__(self, uio, cfgFilename, defaultConfig, addDotToFilename=True, encrypt=False, cfgPath=None):
|
343
343
|
"""@brief Constructor
|
344
344
|
@param uio A UIO (User Input Output) instance. May be set to None if no user messages are required.
|
@@ -773,11 +773,11 @@ class DotConfigManager(ConfigManager):
|
|
773
773
|
|
774
774
|
if not os.path.isdir(homePath):
|
775
775
|
raise Exception(f"{homePath} HOME path does not exist.")
|
776
|
-
|
776
|
+
|
777
777
|
# Create the ~/.config folder if it does not exist
|
778
778
|
if not os.path.isdir(configFolder):
|
779
779
|
# Create the ~/.config folder
|
780
|
-
os.
|
780
|
+
os.makedirs(configFolder)
|
781
781
|
|
782
782
|
progName = sys.argv[0]
|
783
783
|
if progName.endswith('.py'):
|
@@ -802,7 +802,7 @@ class DotConfigManager(ConfigManager):
|
|
802
802
|
@param encrypt If True then data will be encrypted in the saved files.
|
803
803
|
The encryption uses part of the the local SSH RSA private key.
|
804
804
|
This is not secure but assuming the private key has not been compromised it's
|
805
|
-
probably the best we can do.
|
805
|
+
probably the best we can do.
|
806
806
|
!!! Therefore if encrypt is set True then the an ssh key must be present !!!
|
807
807
|
||| in the ~/.ssh folder named id_rsa. !!!"""
|
808
808
|
super().__init__(uio, DotConfigManager.GetDefaultConfigFilename(), defaultConfig, encrypt=encrypt)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: p3lib
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.100
|
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
|
@@ -11,12 +11,12 @@ p3lib/mqtt_rpc.py,sha256=6LmFA1kR4HSJs9eWbOJORRHNY01L_lHWjvtE2fmY8P8,10511
|
|
11
11
|
p3lib/netif.py,sha256=3QV5OGdHhELIf4MBj6mx5MNCtVeZ7JXoNEkeu4KzCaE,9796
|
12
12
|
p3lib/netplotly.py,sha256=PMDx-w1jtRVW6Od5u_kuKbBxNpTS_Y88mMF60puMxLM,9363
|
13
13
|
p3lib/ngt.py,sha256=Y4HsSiaBEYi7OFWkqkDDJende_yyxsvIjUremfArXgA,39204
|
14
|
-
p3lib/pconfig.py,sha256=
|
14
|
+
p3lib/pconfig.py,sha256=2yZUK5nkqpAm4Y_xcJq5H9Lxmc8dfYei1Pi0Ek2Crh0,35376
|
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.
|
19
|
-
p3lib-1.1.
|
20
|
-
p3lib-1.1.
|
21
|
-
p3lib-1.1.
|
22
|
-
p3lib-1.1.
|
18
|
+
p3lib-1.1.100.dist-info/LICENSE,sha256=igqTy5u0kVWM1n-NUZMvAlinY6lVjAXKoag0okkS8V8,1067
|
19
|
+
p3lib-1.1.100.dist-info/METADATA,sha256=z6-lX_HWH1ILG4DcC_z6OssgJQwXN6lhfDplHVAERog,919
|
20
|
+
p3lib-1.1.100.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
21
|
+
p3lib-1.1.100.dist-info/top_level.txt,sha256=SDCpXYh-19yCFp4Z8ZK4B-3J4NvTCJElZ42NPgcR6-U,6
|
22
|
+
p3lib-1.1.100.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|