[chirp_devel] py3 File Open problem

Charlie Li
Wed Dec 14 16:03:03 PST 2022


Dan Smith via chirp_devel wrote:
> I'll need to go dig into that to see if we should be doing something else. Perhaps you're on an older python and importlib_resources behaves differently than my native one in python 3.10. So yeah, let me know which macos you're on and where you got python (and which version) so I can try to narrow it down.
> 
I specifically conditional imported importlib_resources to use the 
package if the Python used is < 3.10, since certain constructs used only 
appeared in time for 3.10; they are backported into the package. Doing 
this conditional import ensures consistent behaviour (at least in theory).
> PosixPath can be str()'d to get just a path string, so perhaps that's all we need to do there.
> 
Correct.

-- 
Charlie Li
…nope, still don't have an exit line.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
Url : http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20221214/4831bb9a/attachment-0001.bin 


More information about the chirp_devel mailing list