<div dir="ltr">in chirp/wxui/main.py line 813 I removed &quot;chirp_platform.get_platform().get_last_dir(),&quot;<div>and I was able to get a usable file dialog to pop up.</div><div><br></div><div> 812          with wx.FileDialog(self, _(&#39;Open a file&#39;),                              <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, _(&#39;Open a file&#39;),                              <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 &lt;<a href="mailto:chirp_devel@intrepid.danplanet.com">chirp_devel@intrepid.danplanet.com</a>&gt; 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>
&gt; I&#39;ll need to go dig into that to see if we should be doing something else. Perhaps you&#39;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&#39;re on and where you got python (and which version) so I can try to narrow it down.<br>
&gt; <br>
I specifically conditional imported importlib_resources to use the <br>
package if the Python used is &lt; 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>
&gt; PosixPath can be str()&#39;d to get just a path string, so perhaps that&#39;s all we need to do there.<br>
&gt; <br>
Correct.<br>
<br>
-- <br>
Charlie Li<br>
…nope, still don&#39;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>