diff options
author | Brandon Philips <brandon.philips@rackspace.com> | 2012-06-11 17:19:23 (GMT) |
---|---|---|
committer | Brandon Philips <brandon.philips@rackspace.com> | 2012-06-11 17:19:23 (GMT) |
commit | b191336180dd94594809b733297ba6ed2c84ec2a (patch) | |
tree | ca11eae6d256ae42145aae11944949276e3dca7a | |
parent | 9cd14a0ce0376e79a742fc59412136e5b460f558 (diff) | |
download | Ninja-b191336180dd94594809b733297ba6ed2c84ec2a.zip Ninja-b191336180dd94594809b733297ba6ed2c84ec2a.tar.gz Ninja-b191336180dd94594809b733297ba6ed2c84ec2a.tar.bz2 |
bootstrap: fix path magic on windows
It was reported that argv[0] doesn't get set on windows. Some research
showed that using abspath(__filename__) should accomplish this.
-rwxr-xr-x | bootstrap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap.py b/bootstrap.py index f178bda..3aac647 100755 --- a/bootstrap.py +++ b/bootstrap.py @@ -21,7 +21,7 @@ import errno import shlex import subprocess -os.chdir(os.path.dirname(sys.argv[0])) +os.chdir(os.path.dirname(os.path.abspath(__file__))) parser = OptionParser() parser.add_option('--verbose', action='store_true', |