Update default paths for symbols/footprints
Changes the default search path (if not initialized) to "symbols" from "library" and to "footprints" from "modules"
This commit is contained in:
parent
99442350a4
commit
61025de865
|
@ -55,6 +55,15 @@ static void setSearchPaths( SEARCH_STACK* aDst, KIWAY::FACE_T aId )
|
||||||
|
|
||||||
fn.RemoveLastDir();
|
fn.RemoveLastDir();
|
||||||
fn.RemoveLastDir(); // "../../" up twice, removing library/doc/
|
fn.RemoveLastDir(); // "../../" up twice, removing library/doc/
|
||||||
|
|
||||||
|
fn.AppendDir( wxT( "symbols" ) );
|
||||||
|
aDst->AddPaths( fn.GetPath() );
|
||||||
|
|
||||||
|
fn.AppendDir( wxT( "doc" ) );
|
||||||
|
aDst->AddPaths( fn.GetPath() );
|
||||||
|
|
||||||
|
fn.RemoveLastDir();
|
||||||
|
fn.RemoveLastDir(); // "../../" up twice, removing symbols/doc/
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add PCB library file path to search path list.
|
// Add PCB library file path to search path list.
|
||||||
|
@ -64,6 +73,10 @@ static void setSearchPaths( SEARCH_STACK* aDst, KIWAY::FACE_T aId )
|
||||||
aDst->AddPaths( fn.GetPath() );
|
aDst->AddPaths( fn.GetPath() );
|
||||||
fn.RemoveLastDir();
|
fn.RemoveLastDir();
|
||||||
|
|
||||||
|
fn.AppendDir( wxT( "footprints" ) );
|
||||||
|
aDst->AddPaths( fn.GetPath() );
|
||||||
|
fn.RemoveLastDir();
|
||||||
|
|
||||||
// Add 3D module library file path to search path list.
|
// Add 3D module library file path to search path list.
|
||||||
fn.AppendDir( wxT( "3dmodels" ) );
|
fn.AppendDir( wxT( "3dmodels" ) );
|
||||||
aDst->AddPaths( fn.GetPath() );
|
aDst->AddPaths( fn.GetPath() );
|
||||||
|
|
|
@ -501,7 +501,7 @@ void COMMON_SETTINGS::InitializeEnvironment()
|
||||||
wxFileName basePath( PATHS::GetStockEDALibraryPath(), wxEmptyString );
|
wxFileName basePath( PATHS::GetStockEDALibraryPath(), wxEmptyString );
|
||||||
|
|
||||||
wxFileName path( basePath );
|
wxFileName path( basePath );
|
||||||
path.AppendDir( wxT( "modules" ) );
|
path.AppendDir( wxT( "footprints" ) );
|
||||||
addVar( wxT( "KICAD6_FOOTPRINT_DIR" ), path.GetFullPath() );
|
addVar( wxT( "KICAD6_FOOTPRINT_DIR" ), path.GetFullPath() );
|
||||||
|
|
||||||
path = basePath;
|
path = basePath;
|
||||||
|
@ -552,6 +552,6 @@ void COMMON_SETTINGS::InitializeEnvironment()
|
||||||
addVar( wxT( "KICAD6_3RD_PARTY" ), PATHS::GetDefault3rdPartyPath() );
|
addVar( wxT( "KICAD6_3RD_PARTY" ), PATHS::GetDefault3rdPartyPath() );
|
||||||
|
|
||||||
path = basePath;
|
path = basePath;
|
||||||
path.AppendDir( wxT( "library" ) );
|
path.AppendDir( wxT( "symbols" ) );
|
||||||
addVar( wxT( "KICAD6_SYMBOL_DIR" ), path.GetFullPath() );
|
addVar( wxT( "KICAD6_SYMBOL_DIR" ), path.GetFullPath() );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue