p3lib 1.1.88__tar.gz → 1.1.90__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.88 → p3lib-1.1.90}/PKG-INFO +1 -1
- {p3lib-1.1.88 → p3lib-1.1.90}/setup.cfg +1 -1
- {p3lib-1.1.88 → p3lib-1.1.90}/src/p3lib/pconfig.py +12 -23
- {p3lib-1.1.88 → p3lib-1.1.90}/src/p3lib.egg-info/PKG-INFO +1 -1
- {p3lib-1.1.88 → p3lib-1.1.90}/LICENSE +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/README.md +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/pyproject.toml +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/src/p3lib/__init__.py +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/src/p3lib/ate.py +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/src/p3lib/bokeh_auth.py +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/src/p3lib/bokeh_gui.py +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/src/p3lib/boot_manager.py +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/src/p3lib/conduit.py +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/src/p3lib/database_if.py +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/src/p3lib/helper.py +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/src/p3lib/json_networking.py +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/src/p3lib/mqtt_rpc.py +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/src/p3lib/netif.py +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/src/p3lib/netplotly.py +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/src/p3lib/ngt.py +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/src/p3lib/ssh.py +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/src/p3lib/table_plot.py +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/src/p3lib/uio.py +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/src/p3lib.egg-info/SOURCES.txt +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/src/p3lib.egg-info/dependency_links.txt +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/src/p3lib.egg-info/requires.txt +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/src/p3lib.egg-info/top_level.txt +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/tests/test_conduit.py +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/tests/test_json_networking.py +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/tests/test_netif.py +0 -0
- {p3lib-1.1.88 → p3lib-1.1.90}/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.90
|
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.90
|
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.
|
@@ -762,18 +762,11 @@ class DotConfigManager(ConfigManager):
|
|
762
762
|
@staticmethod
|
763
763
|
def GetDefaultConfigFilename():
|
764
764
|
"""@brief Get the default name of the config file for this app. This will be the program name
|
765
|
-
(file that started up initially) without the .py extension.
|
766
|
-
will
|
767
|
-
|
768
|
-
will be as detailed above but will be prefixed by a . character and will reside
|
769
|
-
in the users home folder."""
|
770
|
-
progName = sys.argv[0]
|
771
|
-
if progName.endswith('.py'):
|
772
|
-
progName = progName[0:-3]
|
773
|
-
|
774
|
-
folder = '.config'
|
765
|
+
(file that started up initially) without the .py extension. A .cfg extension is added
|
766
|
+
and it will be found in the ~/.config folder."""
|
767
|
+
dotConfigFolder = '.config'
|
775
768
|
homePath = os.path.expanduser("~")
|
776
|
-
configFolder = os.path.join(homePath,
|
769
|
+
configFolder = os.path.join(homePath, dotConfigFolder)
|
777
770
|
|
778
771
|
if not os.path.isdir(homePath):
|
779
772
|
raise Exception(f"{homePath} HOME path does not exist.")
|
@@ -783,25 +776,21 @@ class DotConfigManager(ConfigManager):
|
|
783
776
|
# Create the ~/.config folder
|
784
777
|
os.makedir(configFolder)
|
785
778
|
|
779
|
+
progName = sys.argv[0]
|
780
|
+
if progName.endswith('.py'):
|
781
|
+
progName = progName[0:-3]
|
782
|
+
progName = os.path.basename(progName).strip()
|
783
|
+
|
786
784
|
# Note that we assume that addDotToFilename in the ConfigManager constructor is set True
|
787
785
|
# as this will prefix the filename with the . character.
|
788
786
|
if os.path.isdir(configFolder):
|
789
|
-
|
790
|
-
configFolder = os.path.join(configFolder, extraFolders)
|
791
|
-
if not os.path.isdir(configFolder):
|
792
|
-
os.makedirs(configFolder)
|
793
|
-
if not os.path.isdir(configFolder):
|
794
|
-
raise Exception(f"Failed to create the {configFolder} folder.")
|
795
|
-
|
796
|
-
configFolder = "config"
|
797
|
-
configFolder = os.path.join(configFolder, extraFolders)
|
798
|
-
configFilename = os.path.join(configFolder, os.path.basename(progName) + '.cfg')
|
787
|
+
configFilename = os.path.join(".config", progName + ".cfg")
|
799
788
|
|
800
789
|
else:
|
801
|
-
|
790
|
+
raise Exception(f"Failed to create the {configFolder} folder.")
|
802
791
|
|
803
792
|
return configFilename
|
804
|
-
|
793
|
+
|
805
794
|
def __init__(self, defaultConfig, keyEditOrderList=None, uio=None, encrypt=False):
|
806
795
|
"""@brief Constructor
|
807
796
|
@param defaultConfig A default config instance containing all the default key-value pairs.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: p3lib
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.90
|
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
|