summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-11-22 01:21:31 (GMT)
committerEvan Martin <martine@danga.com>2011-11-22 01:21:31 (GMT)
commit38ab41f45ff818b437942b753328a0168914fc86 (patch)
treefcfdefa36a696ada9684dea59f3a72286aab250e
parent819d6347b424f583d651b86dd1280605ddb23b88 (diff)
parent209d85b9fac5ebaef63dd952ec3b4f79144f6f52 (diff)
downloadNinja-38ab41f45ff818b437942b753328a0168914fc86.zip
Ninja-38ab41f45ff818b437942b753328a0168914fc86.tar.gz
Ninja-38ab41f45ff818b437942b753328a0168914fc86.tar.bz2
Merge pull request #143 from cipriancraciun/patches/python2
Rename all occurences of `python` to `python2`
-rwxr-xr-xconfigure.py2
-rw-r--r--misc/ninja_syntax.py2
-rwxr-xr-xmisc/ninja_test.py2
-rw-r--r--src/browse.cc2
-rwxr-xr-xsrc/browse.py2
5 files changed, 5 insertions, 5 deletions
diff --git a/configure.py b/configure.py
index e31387e..8c0592d 100755
--- a/configure.py
+++ b/configure.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Copyright 2001 Google Inc. All Rights Reserved.
#
diff --git a/misc/ninja_syntax.py b/misc/ninja_syntax.py
index 6e8a87c..4a1653f 100644
--- a/misc/ninja_syntax.py
+++ b/misc/ninja_syntax.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
"""Python module for generating .ninja files.
diff --git a/misc/ninja_test.py b/misc/ninja_test.py
index 762fe16..ba9e1e1 100755
--- a/misc/ninja_test.py
+++ b/misc/ninja_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2011 Google Inc. All Rights Reserved.
#
diff --git a/src/browse.cc b/src/browse.cc
index 2e74206..64a6bcb 100644
--- a/src/browse.cc
+++ b/src/browse.cc
@@ -46,7 +46,7 @@ void RunBrowsePython(State* /* state */, const char* ninja_command,
// exec Python, telling it to run the program from stdin.
const char* command[] = {
- "python", "-", ninja_command, initial_target, NULL
+ "python2", "-", ninja_command, initial_target, NULL
};
execvp(command[0], (char**)command);
perror("ninja: execvp");
diff --git a/src/browse.py b/src/browse.py
index 9901adc..97f95a5 100755
--- a/src/browse.py
+++ b/src/browse.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
#
# Copyright 2001 Google Inc. All Rights Reserved.
#