p3lib 1.1.104__tar.gz → 1.1.105__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 (33) hide show
  1. {p3lib-1.1.104 → p3lib-1.1.105}/PKG-INFO +1 -1
  2. {p3lib-1.1.104 → p3lib-1.1.105}/setup.cfg +1 -1
  3. {p3lib-1.1.104 → p3lib-1.1.105}/src/p3lib/gnome_desktop_app.py +11 -7
  4. {p3lib-1.1.104 → p3lib-1.1.105}/src/p3lib.egg-info/PKG-INFO +1 -1
  5. {p3lib-1.1.104 → p3lib-1.1.105}/LICENSE +0 -0
  6. {p3lib-1.1.104 → p3lib-1.1.105}/README.md +0 -0
  7. {p3lib-1.1.104 → p3lib-1.1.105}/pyproject.toml +0 -0
  8. {p3lib-1.1.104 → p3lib-1.1.105}/src/p3lib/__init__.py +0 -0
  9. {p3lib-1.1.104 → p3lib-1.1.105}/src/p3lib/ate.py +0 -0
  10. {p3lib-1.1.104 → p3lib-1.1.105}/src/p3lib/bokeh_auth.py +0 -0
  11. {p3lib-1.1.104 → p3lib-1.1.105}/src/p3lib/bokeh_gui.py +0 -0
  12. {p3lib-1.1.104 → p3lib-1.1.105}/src/p3lib/boot_manager.py +0 -0
  13. {p3lib-1.1.104 → p3lib-1.1.105}/src/p3lib/conduit.py +0 -0
  14. {p3lib-1.1.104 → p3lib-1.1.105}/src/p3lib/database_if.py +0 -0
  15. {p3lib-1.1.104 → p3lib-1.1.105}/src/p3lib/file_io.py +0 -0
  16. {p3lib-1.1.104 → p3lib-1.1.105}/src/p3lib/helper.py +0 -0
  17. {p3lib-1.1.104 → p3lib-1.1.105}/src/p3lib/json_networking.py +0 -0
  18. {p3lib-1.1.104 → p3lib-1.1.105}/src/p3lib/mqtt_rpc.py +0 -0
  19. {p3lib-1.1.104 → p3lib-1.1.105}/src/p3lib/netif.py +0 -0
  20. {p3lib-1.1.104 → p3lib-1.1.105}/src/p3lib/netplotly.py +0 -0
  21. {p3lib-1.1.104 → p3lib-1.1.105}/src/p3lib/ngt.py +0 -0
  22. {p3lib-1.1.104 → p3lib-1.1.105}/src/p3lib/pconfig.py +0 -0
  23. {p3lib-1.1.104 → p3lib-1.1.105}/src/p3lib/ssh.py +0 -0
  24. {p3lib-1.1.104 → p3lib-1.1.105}/src/p3lib/table_plot.py +0 -0
  25. {p3lib-1.1.104 → p3lib-1.1.105}/src/p3lib/uio.py +0 -0
  26. {p3lib-1.1.104 → p3lib-1.1.105}/src/p3lib.egg-info/SOURCES.txt +0 -0
  27. {p3lib-1.1.104 → p3lib-1.1.105}/src/p3lib.egg-info/dependency_links.txt +0 -0
  28. {p3lib-1.1.104 → p3lib-1.1.105}/src/p3lib.egg-info/requires.txt +0 -0
  29. {p3lib-1.1.104 → p3lib-1.1.105}/src/p3lib.egg-info/top_level.txt +0 -0
  30. {p3lib-1.1.104 → p3lib-1.1.105}/tests/test_conduit.py +0 -0
  31. {p3lib-1.1.104 → p3lib-1.1.105}/tests/test_json_networking.py +0 -0
  32. {p3lib-1.1.104 → p3lib-1.1.105}/tests/test_netif.py +0 -0
  33. {p3lib-1.1.104 → p3lib-1.1.105}/tests/test_ssh.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: p3lib
3
- Version: 1.1.104
3
+ Version: 1.1.105
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.104
3
+ version = 1.1.105
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.
@@ -3,7 +3,6 @@
3
3
  import os
4
4
  import sys
5
5
  import platform
6
- import site
7
6
 
8
7
  class GnomeDesktopApp(object):
9
8
  """@brief Responsible for adding and removing gnome desktop files for launching applications on a Linux system."""
@@ -73,11 +72,16 @@ class GnomeDesktopApp(object):
73
72
  path2 = os.path.join(startup_parent_path, 'assets')
74
73
  self._abs_icon_file = os.path.join(path2, icon_file)
75
74
  if not os.path.isfile(self._abs_icon_file):
76
- site_packages_folder = site.getusersitepackages()
77
- path3 = os.path.join(site_packages_folder, 'assets')
78
- self._abs_icon_file = os.path.join(path3, icon_file)
79
- if not os.path.isfile(self._abs_icon_file):
80
- raise Exception(f"{self._app_name} icon file ({icon_file}) not found.")
75
+ # Try all the site packages folders we know about.
76
+ for path in sys.path:
77
+ if 'site-packages' in path:
78
+ site_packages_path = path
79
+ path3 = os.path.join(site_packages_path, 'assets')
80
+ self._abs_icon_file = os.path.join(path3, icon_file)
81
+ if os.path.isfile(self._abs_icon_file):
82
+ return self._abs_icon_file
83
+
84
+ raise Exception(f"{self._app_name} icon file ({icon_file}) not found.")
81
85
 
82
86
  def _get_gnome_desktop_file(self):
83
87
  """@brief Determine and return the name of the gnome desktop file.
@@ -105,7 +109,7 @@ class GnomeDesktopApp(object):
105
109
  lines.append(f'Name={self._app_name}')
106
110
  lines.append(f'Comment={self._comment}')
107
111
  lines.append(f'Icon={self._abs_icon_file}')
108
- lines.append(f'Exec=python3 {self._startup_file}')
112
+ lines.append(f'Exec={self._startup_file}')
109
113
  lines.append('Terminal=false')
110
114
  lines.append(f'Categories={self._categories}')
111
115
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: p3lib
3
- Version: 1.1.104
3
+ Version: 1.1.105
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