p3lib 1.1.89__tar.gz → 1.1.91__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.
Files changed (31) hide show
  1. {p3lib-1.1.89 → p3lib-1.1.91}/PKG-INFO +1 -1
  2. {p3lib-1.1.89 → p3lib-1.1.91}/setup.cfg +1 -1
  3. {p3lib-1.1.89 → p3lib-1.1.91}/src/p3lib/pconfig.py +23 -20
  4. {p3lib-1.1.89 → p3lib-1.1.91}/src/p3lib.egg-info/PKG-INFO +1 -1
  5. {p3lib-1.1.89 → p3lib-1.1.91}/LICENSE +0 -0
  6. {p3lib-1.1.89 → p3lib-1.1.91}/README.md +0 -0
  7. {p3lib-1.1.89 → p3lib-1.1.91}/pyproject.toml +0 -0
  8. {p3lib-1.1.89 → p3lib-1.1.91}/src/p3lib/__init__.py +0 -0
  9. {p3lib-1.1.89 → p3lib-1.1.91}/src/p3lib/ate.py +0 -0
  10. {p3lib-1.1.89 → p3lib-1.1.91}/src/p3lib/bokeh_auth.py +0 -0
  11. {p3lib-1.1.89 → p3lib-1.1.91}/src/p3lib/bokeh_gui.py +0 -0
  12. {p3lib-1.1.89 → p3lib-1.1.91}/src/p3lib/boot_manager.py +0 -0
  13. {p3lib-1.1.89 → p3lib-1.1.91}/src/p3lib/conduit.py +0 -0
  14. {p3lib-1.1.89 → p3lib-1.1.91}/src/p3lib/database_if.py +0 -0
  15. {p3lib-1.1.89 → p3lib-1.1.91}/src/p3lib/helper.py +0 -0
  16. {p3lib-1.1.89 → p3lib-1.1.91}/src/p3lib/json_networking.py +0 -0
  17. {p3lib-1.1.89 → p3lib-1.1.91}/src/p3lib/mqtt_rpc.py +0 -0
  18. {p3lib-1.1.89 → p3lib-1.1.91}/src/p3lib/netif.py +0 -0
  19. {p3lib-1.1.89 → p3lib-1.1.91}/src/p3lib/netplotly.py +0 -0
  20. {p3lib-1.1.89 → p3lib-1.1.91}/src/p3lib/ngt.py +0 -0
  21. {p3lib-1.1.89 → p3lib-1.1.91}/src/p3lib/ssh.py +0 -0
  22. {p3lib-1.1.89 → p3lib-1.1.91}/src/p3lib/table_plot.py +0 -0
  23. {p3lib-1.1.89 → p3lib-1.1.91}/src/p3lib/uio.py +0 -0
  24. {p3lib-1.1.89 → p3lib-1.1.91}/src/p3lib.egg-info/SOURCES.txt +0 -0
  25. {p3lib-1.1.89 → p3lib-1.1.91}/src/p3lib.egg-info/dependency_links.txt +0 -0
  26. {p3lib-1.1.89 → p3lib-1.1.91}/src/p3lib.egg-info/requires.txt +0 -0
  27. {p3lib-1.1.89 → p3lib-1.1.91}/src/p3lib.egg-info/top_level.txt +0 -0
  28. {p3lib-1.1.89 → p3lib-1.1.91}/tests/test_conduit.py +0 -0
  29. {p3lib-1.1.89 → p3lib-1.1.91}/tests/test_json_networking.py +0 -0
  30. {p3lib-1.1.89 → p3lib-1.1.91}/tests/test_netif.py +0 -0
  31. {p3lib-1.1.89 → p3lib-1.1.91}/tests/test_ssh.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: p3lib
3
- Version: 1.1.89
3
+ Version: 1.1.91
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.89
3
+ version = 1.1.91
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.
@@ -764,32 +764,35 @@ class DotConfigManager(ConfigManager):
764
764
  """@brief Get the default name of the config file for this app. This will be the program name
765
765
  (file that started up initially) without the .py extension. A .cfg extension is added
766
766
  and it will be found in the ~/.config folder."""
767
- dotConfigFolder = '.config'
768
- homePath = os.path.expanduser("~")
769
- configFolder = os.path.join(homePath, dotConfigFolder)
767
+ dotConfigFolder = '.config'
768
+ if platform.system() == 'Linux' and os.geteuid() == 0:
769
+ homePath = "/root"
770
+ else:
771
+ homePath = os.path.expanduser("~")
772
+ configFolder = os.path.join(homePath, dotConfigFolder)
770
773
 
771
- if not os.path.isdir(homePath):
772
- raise Exception(f"{homePath} HOME path does not exist.")
774
+ if not os.path.isdir(homePath):
775
+ raise Exception(f"{homePath} HOME path does not exist.")
773
776
 
774
- # Create the ~/.config folder if it does not exist
775
- if not os.path.isdir(configFolder):
776
- # Create the ~/.config folder
777
- os.makedir(configFolder)
777
+ # Create the ~/.config folder if it does not exist
778
+ if not os.path.isdir(configFolder):
779
+ # Create the ~/.config folder
780
+ os.makedir(configFolder)
778
781
 
779
- progName = sys.argv[0]
780
- if progName.endswith('.py'):
781
- progName = progName[0:-3]
782
- progName = os.path.basename(progName).strip()
782
+ progName = sys.argv[0]
783
+ if progName.endswith('.py'):
784
+ progName = progName[0:-3]
785
+ progName = os.path.basename(progName).strip()
783
786
 
784
- # Note that we assume that addDotToFilename in the ConfigManager constructor is set True
785
- # as this will prefix the filename with the . character.
786
- if os.path.isdir(configFolder):
787
- configFilename = os.path.join(".config", progName + ".cfg")
787
+ # Note that we assume that addDotToFilename in the ConfigManager constructor is set True
788
+ # as this will prefix the filename with the . character.
789
+ if os.path.isdir(configFolder):
790
+ configFilename = os.path.join(".config", progName + ".cfg")
788
791
 
789
- else:
790
- raise Exception(f"Failed to create the {configFolder} folder.")
792
+ else:
793
+ raise Exception(f"Failed to create the {configFolder} folder.")
791
794
 
792
- return configFilename
795
+ return configFilename
793
796
 
794
797
  def __init__(self, defaultConfig, keyEditOrderList=None, uio=None, encrypt=False):
795
798
  """@brief Constructor
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: p3lib
3
- Version: 1.1.89
3
+ Version: 1.1.91
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