p3lib 1.1.105__tar.gz → 1.1.106__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.105 → p3lib-1.1.106}/PKG-INFO +1 -1
- {p3lib-1.1.105 → p3lib-1.1.106}/setup.cfg +1 -1
- {p3lib-1.1.105 → p3lib-1.1.106}/src/p3lib/helper.py +41 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/src/p3lib.egg-info/PKG-INFO +1 -1
- {p3lib-1.1.105 → p3lib-1.1.106}/LICENSE +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/README.md +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/pyproject.toml +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/src/p3lib/__init__.py +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/src/p3lib/ate.py +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/src/p3lib/bokeh_auth.py +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/src/p3lib/bokeh_gui.py +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/src/p3lib/boot_manager.py +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/src/p3lib/conduit.py +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/src/p3lib/database_if.py +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/src/p3lib/file_io.py +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/src/p3lib/gnome_desktop_app.py +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/src/p3lib/json_networking.py +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/src/p3lib/mqtt_rpc.py +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/src/p3lib/netif.py +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/src/p3lib/netplotly.py +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/src/p3lib/ngt.py +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/src/p3lib/pconfig.py +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/src/p3lib/ssh.py +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/src/p3lib/table_plot.py +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/src/p3lib/uio.py +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/src/p3lib.egg-info/SOURCES.txt +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/src/p3lib.egg-info/dependency_links.txt +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/src/p3lib.egg-info/requires.txt +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/src/p3lib.egg-info/top_level.txt +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/tests/test_conduit.py +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/tests/test_json_networking.py +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/tests/test_netif.py +0 -0
- {p3lib-1.1.105 → p3lib-1.1.106}/tests/test_ssh.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: p3lib
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.106
|
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.106
|
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.
|
@@ -377,3 +377,44 @@ def appendCreateFile(uio, aFile, quiet=False):
|
|
377
377
|
fd.close()
|
378
378
|
if not quiet:
|
379
379
|
uio.info("Created {}".format(aFile))
|
380
|
+
|
381
|
+
def getAbsFile(filename):
|
382
|
+
"""@brief Check that the file exists in several places.
|
383
|
+
1 - The startup folder
|
384
|
+
2 - An 'assets' folder in the startup folder
|
385
|
+
3 - An 'assets' folder in the startup parent folder
|
386
|
+
3 - In an 'assets' folder in a python site-packages folder.
|
387
|
+
@param filename The name of the icon file.
|
388
|
+
@return The abs path of the file or None if not found."""
|
389
|
+
file_found = None
|
390
|
+
abs_filename = os.path.abspath(filename)
|
391
|
+
if os.path.isfile(abs_filename):
|
392
|
+
file_found = abs_filename
|
393
|
+
|
394
|
+
else:
|
395
|
+
startup_file = os.path.abspath(sys.argv[0])
|
396
|
+
startup_path = os.path.dirname(startup_file)
|
397
|
+
path1 = os.path.join(startup_path, 'assets')
|
398
|
+
abs_filename = os.path.join(path1, filename)
|
399
|
+
if os.path.isfile(abs_filename):
|
400
|
+
file_found = abs_filename
|
401
|
+
|
402
|
+
else:
|
403
|
+
startup_parent_path = os.path.join(startup_path, '..')
|
404
|
+
path2 = os.path.join(startup_parent_path, 'assets')
|
405
|
+
abs_filename = os.path.join(path2, filename)
|
406
|
+
if os.path.isfile(abs_filename):
|
407
|
+
file_found = abs_filename
|
408
|
+
|
409
|
+
else:
|
410
|
+
# Try all the site packages folders we know about.
|
411
|
+
for path in sys.path:
|
412
|
+
if 'site-packages' in path:
|
413
|
+
site_packages_path = path
|
414
|
+
path3 = os.path.join(site_packages_path, 'assets')
|
415
|
+
abs_filename = os.path.join(path3, filename)
|
416
|
+
if os.path.isfile(abs_filename):
|
417
|
+
file_found = abs_filename
|
418
|
+
break
|
419
|
+
|
420
|
+
return file_found
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: p3lib
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.106
|
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
|
File without changes
|
File without changes
|