Allow `python3` as value for the `--python_path` flag.
Resolves issue
Closes
@@ -138,7 +138,7 @@ public class BazelPythonConfiguration extends BuildConfiguration.Fragment {
= new BazelPythonConfiguration(buildOptions.get(Options.class));
String pythonPath = pythonConfiguration.getPythonPath();
- if (!pythonPath.equals("python") && !PathFragment.create(pythonPath).isAbsolute()) {
+ if (!pythonPath.startsWith("python") && !PathFragment.create(pythonPath).isAbsolute()) {
throw new InvalidConfigurationException(
"python_path must be an absolute path when it is set.");
}
