Skip to content

Commit

Permalink
bootstrap: chdir to bootstrap's directory
Browse files Browse the repository at this point in the history
When integrating ninja into luvit I naively tried calling:

    ./tools/ninja/bootstrap.py

This broke because bootstrap expects you to be in the ninja directory
when you call it. This patch makes it possible to run bootstrap.py like
above and have it work.
  • Loading branch information
philips committed Jun 10, 2012
1 parent 62d3b11 commit 9cd14a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
import shlex
import subprocess

os.chdir(os.path.dirname(sys.argv[0]))

parser = OptionParser()
parser.add_option('--verbose', action='store_true',
help='enable verbose build',)
Expand Down

0 comments on commit 9cd14a0

Please sign in to comment.