[chirp_devel] [PATCH] Try harder to find resources. #4487
Tim Smith
Sat Feb 4 14:07:47 PST 2017
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 4487-locate-resources.patch
Type: application/octet-stream
Size: 3923 bytes
Desc: not available
Url : http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20170204/2a8b6961/attachment-0001.obj
More information about the chirp_devel
mailing list