Fix for MSWin (plugins not found)
This commit is contained in:
parent
d6fbd7b4e5
commit
29d7829909
|
@ -133,10 +133,13 @@ void S3D_PLUGIN_MANAGER::loadPlugins( void )
|
||||||
checkPluginPath( testpath, searchpaths );
|
checkPluginPath( testpath, searchpaths );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
fn.Assign( wxStandardPaths::Get().GetPluginsDir() );
|
|
||||||
#ifndef _WIN32 // suppress 'kicad' subdir since it is redundant on MSWin
|
#ifndef _WIN32 // suppress 'kicad' subdir since it is redundant on MSWin
|
||||||
|
fn.Assign( wxStandardPaths::Get().GetPluginsDir() );
|
||||||
fn.AppendDir( wxT( "kicad" ) );
|
fn.AppendDir( wxT( "kicad" ) );
|
||||||
|
#else
|
||||||
|
fn.Assign( wxStandardPaths::Get().GetExecutablePath() );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
fn.AppendDir( wxT( "plugins" ) );
|
fn.AppendDir( wxT( "plugins" ) );
|
||||||
fn.AppendDir( wxT( "3d" ) );
|
fn.AppendDir( wxT( "3d" ) );
|
||||||
checkPluginPath( std::string( fn.GetPathWithSep().ToUTF8() ), searchpaths );
|
checkPluginPath( std::string( fn.GetPathWithSep().ToUTF8() ), searchpaths );
|
||||||
|
|
Loading…
Reference in New Issue