p3lib 1.1.112__py2.py3-none-any.whl → 1.1.113__py2.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 CHANGED
@@ -775,12 +775,8 @@ class DotConfigManager(ConfigManager):
775
775
  KEY_EDIT_ORDER_LIST = None
776
776
 
777
777
  @staticmethod
778
- def GetDefaultConfigFilename(filenameOverride=None):
779
- """@brief Get the default name of the config file for this app. This will be the program name
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: p3lib
3
- Version: 1.1.112
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
@@ -14,11 +14,11 @@ p3lib/mqtt_rpc.py,sha256=6LmFA1kR4HSJs9eWbOJORRHNY01L_lHWjvtE2fmY8P8,10511
14
14
  p3lib/netif.py,sha256=3QV5OGdHhELIf4MBj6mx5MNCtVeZ7JXoNEkeu4KzCaE,9796
15
15
  p3lib/netplotly.py,sha256=PMDx-w1jtRVW6Od5u_kuKbBxNpTS_Y88mMF60puMxLM,9363
16
16
  p3lib/ngt.py,sha256=hdS60qKm9x1j5XG2VOVFxO1RLe5pEcCSsaqP-TZF3Cc,40053
17
- p3lib/pconfig.py,sha256=k1WHvmHzOfmkSbP7CrFyT1iTwn5_UROQjk6gltdh7bk,37280
17
+ p3lib/pconfig.py,sha256=wGC6UJAIBksRjwKTfaw3Y6vAMkgey0QC2nhkCtqj1MQ,37738
18
18
  p3lib/ssh.py,sha256=OyoAQ_h1L2RfkjTAChDrvLFfl4Fe_gBNdX5rvK-wKiw,42125
19
19
  p3lib/table_plot.py,sha256=RPncwVlGUkkx5Fw0dHQedXo0TSPlTi__VrJBDzaMsuI,32116
20
20
  p3lib/uio.py,sha256=Aaxc99XiE3d2f9vLjaN-bZsckoNxay5t0ujdK6PXGrw,23265
21
- p3lib-1.1.112.dist-info/LICENSE,sha256=igqTy5u0kVWM1n-NUZMvAlinY6lVjAXKoag0okkS8V8,1067
22
- p3lib-1.1.112.dist-info/METADATA,sha256=phxnZrl3uvMeOuongVujRRpxU2bvvPCakw29E4_6_M4,1337
23
- p3lib-1.1.112.dist-info/WHEEL,sha256=IrRNNNJ-uuL1ggO5qMvT1GGhQVdQU54d6ZpYqEZfEWo,92
24
- p3lib-1.1.112.dist-info/RECORD,,
21
+ p3lib-1.1.113.dist-info/LICENSE,sha256=igqTy5u0kVWM1n-NUZMvAlinY6lVjAXKoag0okkS8V8,1067
22
+ p3lib-1.1.113.dist-info/METADATA,sha256=u9t7fR-cvcPUXfQ6jomlNFVOKd2FOa1oPEFla_6HkVE,1337
23
+ p3lib-1.1.113.dist-info/WHEEL,sha256=IrRNNNJ-uuL1ggO5qMvT1GGhQVdQU54d6ZpYqEZfEWo,92
24
+ p3lib-1.1.113.dist-info/RECORD,,