Permalink
Browse files

Fix python paths in scripts

In git-review, use /usr/bin/python instead of /usr/local/bin/python.
This will be better for most systems.  This only matters when running
git-review out of the source tree, as setup.py updates this path during
installation.  I haven't used "/usr/bin/env python" for now, since then
I can't pass in the -tt argument.  However, we could still switch to
that later if there is a compelling reason to.

In setup.py, invoke python as "/usr/bin/env python", to find python from
the user's $PATH.  setup.py will modify the installed git-review to
invoke python from the same path found by setup.py.
  • Loading branch information...
1 parent ecd00d3 commit 406e897c3b943bd54421ea895bf4a3a218e56a98 Adam Simpkins committed Feb 5, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 setup.py
  2. +1 −1 src/git-review
View
@@ -1,4 +1,4 @@
-#!/usr/bin/python -tt
+#!/usr/bin/env python
#
# Copyright 2010 Facebook, Inc.
#
View
@@ -1,4 +1,4 @@
-#!/usr/local/bin/python -tt
+#!/usr/bin/python -tt
#
# Copyright 2009-2010 Facebook, Inc.
#

0 comments on commit 406e897

Please sign in to comment.