diff --git a/pcbnew/swig/python_scripting.cpp b/pcbnew/swig/python_scripting.cpp index 7fe0e6d624..b3694e30cb 100644 --- a/pcbnew/swig/python_scripting.cpp +++ b/pcbnew/swig/python_scripting.cpp @@ -663,7 +663,7 @@ wxString PyScriptingPath( bool aUserPath ) #elif defined( __WXMSW__ ) path = Pgm().GetExecutablePath() + wxT( "../share/kicad/scripting" ); #else - path = KICAD_DATA + wxS( "/scripting" ); + path = wxString( KICAD_DATA ) + wxS( "/scripting" ); #endif } }