CLI: Fix macOS binary dir

Fixes https://gitlab.com/kicad/code/kicad/-/issues/12799
This commit is contained in:
Jon Evans 2022-12-01 16:54:02 -05:00
parent 6066ccdfd5
commit a5096bf28a
1 changed files with 1 additions and 1 deletions

View File

@ -535,7 +535,7 @@ bool PGM_BASE::setExecutablePath()
wxFileName fn( m_bin_dir );
if( fn.GetName() == wxT( "kicad" ) )
if( fn.GetName() == wxT( "kicad" ) || fn.GetName() == wxT( "kicad-cli" ) )
{
// kicad launcher, so just remove the Contents/MacOS part
fn.RemoveLastDir();