File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -137,12 +137,16 @@ private static void FindPythonInterpreter() {
137137 // This one failed, ignore and move on to the next one.
138138 }
139139 }
140+ // Only log an error for non-Windows platform, since Windows can use
141+ // an executable instead of the python interpreter.
142+ if ( Application . platform != RuntimePlatform . WindowsEditor ) {
143+ Debug . LogError (
144+ "Could not find a working python interpreter. " +
145+ "Please make sure one of the following is in your PATH: " +
146+ String . Join ( " " , PYTHON_INTERPRETERS ) ) ;
147+ }
140148 // Fall back to the first option in case none worked, so this doesn't
141149 // keep retrying.
142- Debug . LogError (
143- "Could not find a working python interpreter. " +
144- "Please make sure one of the following is in your PATH: " +
145- String . Join ( " " , PYTHON_INTERPRETERS ) ) ;
146150 s_pythonInterpreter = PYTHON_INTERPRETERS [ 0 ] ;
147151 }
148152
You can’t perform that action at this time.
0 commit comments