[chirp_devel] [PATCH] Try harder to find resources. #4487
4 Feb
2017
4 Feb
'17
4:07 p.m.
Shared resources are not located if chirp is installed to a virtualenv. Platform.executable_path() is searched for shared resources but, in a virtualenv, this returns the site-packages directory. The shared resources are located in (venv root)/share, which is a not a child of the site-packages directory.
This patch searches sys.prefix for data_files for compatibility with virtualenv installations and consolidates some of the resource-finding logic.
Thanks, Tim
2649
Age (days ago)
2651
Last active (days ago)
2 comments
2 participants
participants (2)
-
Dan Smith -
Tim Smith