Let pl_editor launch in run from builddir env on windows
This commit is contained in:
parent
17f5a69214
commit
5a5cb218ea
|
@ -103,6 +103,7 @@ __pycache__
|
||||||
.editorconfig
|
.editorconfig
|
||||||
CMakeSettings.json
|
CMakeSettings.json
|
||||||
.vscode/
|
.vscode/
|
||||||
|
/vcpkg_installed
|
||||||
|
|
||||||
# Sublime Text
|
# Sublime Text
|
||||||
*.sublime-*
|
*.sublime-*
|
||||||
|
|
|
@ -68,7 +68,17 @@ wxString FindKicadFile( const wxString& shortname )
|
||||||
{
|
{
|
||||||
wxFileName buildDir( Pgm().GetExecutablePath(), shortname );
|
wxFileName buildDir( Pgm().GetExecutablePath(), shortname );
|
||||||
buildDir.RemoveLastDir();
|
buildDir.RemoveLastDir();
|
||||||
|
#ifndef __WXMSW__
|
||||||
buildDir.AppendDir( shortname );
|
buildDir.AppendDir( shortname );
|
||||||
|
#else
|
||||||
|
buildDir.AppendDir( shortname.BeforeLast( '.' ) );
|
||||||
|
#endif
|
||||||
|
|
||||||
|
if( buildDir.GetDirs().Last() == "pl_editor" )
|
||||||
|
{
|
||||||
|
buildDir.RemoveLastDir();
|
||||||
|
buildDir.AppendDir( "pagelayout_editor" );
|
||||||
|
}
|
||||||
|
|
||||||
if( wxFileExists( buildDir.GetFullPath() ) )
|
if( wxFileExists( buildDir.GetFullPath() ) )
|
||||||
return buildDir.GetFullPath();
|
return buildDir.GetFullPath();
|
||||||
|
|
Loading…
Reference in New Issue