From 826096790db028db44668aa5b820218ea8bcd93f Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 10 Mar 2022 11:22:18 -0800 Subject: [PATCH] Cleanup a few more raw strings (cherry picked from commit 455e330f3bf58b95107be56661beebee5c377a35) --- scripting/python_scripting.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripting/python_scripting.cpp b/scripting/python_scripting.cpp index 9b74709fc6..47956cdb0d 100644 --- a/scripting/python_scripting.cpp +++ b/scripting/python_scripting.cpp @@ -158,7 +158,7 @@ bool SCRIPTING::scriptingSetup() // Prevent Mac builds from generating JIT versions as this will break // the package signing - wxSetEnv( "PYTHONDONTWRITEBYTECODE", "1" ); + wxSetEnv( wxT( "PYTHONDONTWRITEBYTECODE" ), wxT( "1" ) ); // Add default paths to PYTHONPATH wxString pypath; @@ -167,7 +167,7 @@ bool SCRIPTING::scriptingSetup() pypath += PATHS::GetOSXKicadDataDir() + wxT( "/scripting" ); // $(KICAD_PATH)/scripting/plugins is always added in kicadplugins.i - if( wxGetenv("KICAD_PATH") != nullptr ) + if( wxGetenv( "KICAD_PATH" ) != nullptr ) { pypath += wxT( ":" ) + wxString( wxGetenv("KICAD_PATH") ); } @@ -183,7 +183,7 @@ bool SCRIPTING::scriptingSetup() } // set $PYTHONPATH - wxSetEnv( "PYTHONPATH", pypath ); + wxSetEnv( wxT( "PYTHONPATH" ), pypath ); wxString pyhome; @@ -191,7 +191,7 @@ bool SCRIPTING::scriptingSetup() wxT( "Contents/Frameworks/Python.framework/Versions/Current" ); // set $PYTHONHOME - wxSetEnv( "PYTHONHOME", pyhome ); + wxSetEnv( wxT( "PYTHONHOME" ), pyhome ); #else wxString pypath;