diff options
author | Brandon Philips <brandon@ifup.org> | 2012-06-10 01:38:50 (GMT) |
---|---|---|
committer | Brandon Philips <brandon@ifup.org> | 2012-06-10 01:38:50 (GMT) |
commit | 9cd14a0ce0376e79a742fc59412136e5b460f558 (patch) | |
tree | 8a7e2d8053d75ab1f4b715e0600bfde8c67c5755 | |
parent | 62d3b116bb93360bc13600e2ab972504a958d476 (diff) | |
download | Ninja-9cd14a0ce0376e79a742fc59412136e5b460f558.zip Ninja-9cd14a0ce0376e79a742fc59412136e5b460f558.tar.gz Ninja-9cd14a0ce0376e79a742fc59412136e5b460f558.tar.bz2 |
bootstrap: chdir to bootstrap's directory
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.
-rwxr-xr-x | bootstrap.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bootstrap.py b/bootstrap.py index ad6f1eb..f178bda 100755 --- a/bootstrap.py +++ b/bootstrap.py @@ -21,6 +21,8 @@ import errno 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',) |