|  | @@ -139,9 +139,9 @@ def _symlink_genrule_for_dir(repository_ctx,
 | 
	
		
			
				|  |  |  def _get_python_bin(repository_ctx):
 | 
	
		
			
				|  |  |      """Gets the python bin path."""
 | 
	
		
			
				|  |  |      python_bin = repository_ctx.os.environ.get(_PYTHON_BIN_PATH)
 | 
	
		
			
				|  |  | -    if python_bin != None:
 | 
	
		
			
				|  |  | -        return python_bin
 | 
	
		
			
				|  |  | -    python_bin_path = repository_ctx.which("python")
 | 
	
		
			
				|  |  | +    if python_bin == None:
 | 
	
		
			
				|  |  | +        python_bin = 'python'
 | 
	
		
			
				|  |  | +    python_bin_path = repository_ctx.which(python_bin)
 | 
	
		
			
				|  |  |      if python_bin_path != None:
 | 
	
		
			
				|  |  |          return str(python_bin_path)
 | 
	
		
			
				|  |  |      _fail("Cannot find python in PATH, please make sure " +
 |