Skip to content

Commit 22f78b8

Browse files
authored
Don't log an error about missing python on windows (#386)
1 parent b31a88b commit 22f78b8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

editor/app/src/PythonExecutor.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)