mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Guard the cwd change for gui only
This commit is contained in:
parent
4dfedf4fb4
commit
cb948302e2
@ -946,7 +946,8 @@ bool SETTINGS_MANAGER::LoadProject( const wxString& aFullPath, bool aSetActive )
|
||||
wxFileName projectPath( fullPath );
|
||||
wxSetEnv( PROJECT_VAR_NAME, projectPath.GetPath() );
|
||||
|
||||
if( !projectPath.GetPath().IsEmpty() )
|
||||
// set the cwd but don't impact kicad-cli
|
||||
if( !projectPath.GetPath().IsEmpty() && Pgm().IsGUI() )
|
||||
wxSetWorkingDirectory( projectPath.GetPath() );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user