p3lib 1.1.112__tar.gz → 1.1.113__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.112 → p3lib-1.1.113}/PKG-INFO +1 -1
- {p3lib-1.1.112 → p3lib-1.1.113}/pyproject.toml +1 -1
- {p3lib-1.1.112 → p3lib-1.1.113}/src/p3lib/pconfig.py +21 -6
- {p3lib-1.1.112 → p3lib-1.1.113}/LICENSE +0 -0
- {p3lib-1.1.112 → p3lib-1.1.113}/README.md +0 -0
- {p3lib-1.1.112 → p3lib-1.1.113}/src/p3lib/__init__.py +0 -0
- {p3lib-1.1.112 → p3lib-1.1.113}/src/p3lib/ate.py +0 -0
- {p3lib-1.1.112 → p3lib-1.1.113}/src/p3lib/bokeh_auth.py +0 -0
- {p3lib-1.1.112 → p3lib-1.1.113}/src/p3lib/bokeh_gui.py +0 -0
- {p3lib-1.1.112 → p3lib-1.1.113}/src/p3lib/boot_manager.py +0 -0
- {p3lib-1.1.112 → p3lib-1.1.113}/src/p3lib/conduit.py +0 -0
- {p3lib-1.1.112 → p3lib-1.1.113}/src/p3lib/database_if.py +0 -0
- {p3lib-1.1.112 → p3lib-1.1.113}/src/p3lib/file_io.py +0 -0
- {p3lib-1.1.112 → p3lib-1.1.113}/src/p3lib/gnome_desktop_app.py +0 -0
- {p3lib-1.1.112 → p3lib-1.1.113}/src/p3lib/helper.py +0 -0
- {p3lib-1.1.112 → p3lib-1.1.113}/src/p3lib/json_networking.py +0 -0
- {p3lib-1.1.112 → p3lib-1.1.113}/src/p3lib/login.html +0 -0
- {p3lib-1.1.112 → p3lib-1.1.113}/src/p3lib/mqtt_rpc.py +0 -0
- {p3lib-1.1.112 → p3lib-1.1.113}/src/p3lib/netif.py +0 -0
- {p3lib-1.1.112 → p3lib-1.1.113}/src/p3lib/netplotly.py +0 -0
- {p3lib-1.1.112 → p3lib-1.1.113}/src/p3lib/ngt.py +0 -0
- {p3lib-1.1.112 → p3lib-1.1.113}/src/p3lib/ssh.py +0 -0
- {p3lib-1.1.112 → p3lib-1.1.113}/src/p3lib/table_plot.py +0 -0
- {p3lib-1.1.112 → p3lib-1.1.113}/src/p3lib/uio.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.113
|
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/test_equipment
|
6
6
|
License: MIT
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "p3lib"
|
3
|
-
version = "1.1.
|
3
|
+
version = "1.1.113"
|
4
4
|
description = "A group of python modules for networking, plotting data, config storage, automating boot scripts, ssh access and user input output."
|
5
5
|
authors = ["Paul Austen <pjaos@gmail.com>"]
|
6
6
|
license = "MIT License"
|
@@ -775,12 +775,8 @@ class DotConfigManager(ConfigManager):
|
|
775
775
|
KEY_EDIT_ORDER_LIST = None
|
776
776
|
|
777
777
|
@staticmethod
|
778
|
-
def
|
779
|
-
"""@brief Get the default
|
780
|
-
(file that started up initially) without the .py extension. A .cfg extension is added
|
781
|
-
and it will be found in the ~/.config folder.
|
782
|
-
@param filenameOverride The name for the config file in the .config folder. If left as None then the program name ise used
|
783
|
-
as the config filename."""
|
778
|
+
def GetDefaultConfigFolder():
|
779
|
+
"""@brief Get the default config folder.."""
|
784
780
|
dotConfigFolder = '.config'
|
785
781
|
if platform.system() == 'Linux' and os.geteuid() == 0:
|
786
782
|
homePath = "/root"
|
@@ -796,6 +792,25 @@ class DotConfigManager(ConfigManager):
|
|
796
792
|
# Create the ~/.config folder
|
797
793
|
os.makedirs(configFolder)
|
798
794
|
|
795
|
+
return configFolder
|
796
|
+
|
797
|
+
@staticmethod
|
798
|
+
def GetDefaultConfigFilename(filenameOverride=None):
|
799
|
+
"""@brief Get the default name of the config file for this app. This will be the program name
|
800
|
+
(file that started up initially) without the .py extension. A .cfg extension is added
|
801
|
+
and it will be found in the ~/.config folder.
|
802
|
+
|
803
|
+
This will not work if no python file was started
|
804
|
+
|
805
|
+
E.G
|
806
|
+
A command line as shown below
|
807
|
+
|
808
|
+
python -m poetry run python -c "import python_module.python_file; python_module.python_file.main()
|
809
|
+
|
810
|
+
@param filenameOverride The name for the config file in the .config folder. If left as None then the program name ise used
|
811
|
+
as the config filename."""
|
812
|
+
configFolder = DotConfigManager.GetDefaultConfigFolder()
|
813
|
+
|
799
814
|
if filenameOverride:
|
800
815
|
progName = filenameOverride
|
801
816
|
else:
|
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
|