<div dir="ltr">in chirp/wxui/main.py line 813 I removed "chirp_platform.get_platform().get_last_dir(),"<div>and I was able to get a usable file dialog to pop up.</div><div><br></div><div> 812 with wx.FileDialog(self, _('Open a file'), <br> 813 chirp_platform.get_platform().get_last_dir(), <br> 814 wildcard=wildcard, <br> 815 style=wx.FD_OPEN | wx.FD_FILE_MUST_EXIST) as fd: <br> 816 if fd.ShowModal() == wx.ID_CANCEL: <br> 817 return <br></div><div><br></div><div>Changed to</div><div><br></div> 812 with wx.FileDialog(self, _('Open a file'), <br> 813 wildcard=wildcard, <br> 814 style=wx.FD_OPEN | wx.FD_FILE_MUST_EXIST) as fd: <br> 815 if fd.ShowModal() == wx.ID_CANCEL: <br><div> 816 return <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 14, 2022 at 5:03 PM Charlie Li via chirp_devel <<a href="mailto:chirp_devel@intrepid.danplanet.com">chirp_devel@intrepid.danplanet.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dan Smith via chirp_devel wrote:<br>
> 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.<br>
> <br>
I specifically conditional imported importlib_resources to use the <br>
package if the Python used is < 3.10, since certain constructs used only <br>
appeared in time for 3.10; they are backported into the package. Doing <br>
this conditional import ensures consistent behaviour (at least in theory).<br>
> PosixPath can be str()'d to get just a path string, so perhaps that's all we need to do there.<br>
> <br>
Correct.<br>
<br>
-- <br>
Charlie Li<br>
…nope, still don't have an exit line.<br>
<br>
_______________________________________________<br>
chirp_devel mailing list<br>
<a href="mailto:chirp_devel@intrepid.danplanet.com" target="_blank">chirp_devel@intrepid.danplanet.com</a><br>
<a href="http://intrepid.danplanet.com/mailman/listinfo/chirp_devel" rel="noreferrer" target="_blank">http://intrepid.danplanet.com/mailman/listinfo/chirp_devel</a><br>
Developer docs: <a href="http://chirp.danplanet.com/projects/chirp/wiki/Developers" rel="noreferrer" target="_blank">http://chirp.danplanet.com/projects/chirp/wiki/Developers</a></blockquote></div>