projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cd14a0
)
bootstrap: fix path magic on windows
author
Brandon Philips
<brandon.philips@rackspace.com>
Mon, 11 Jun 2012 17:19:23 +0000
(10:19 -0700)
committer
Brandon Philips
<brandon.philips@rackspace.com>
Mon, 11 Jun 2012 17:19:23 +0000
(10:19 -0700)
It was reported that argv[0] doesn't get set on windows. Some research
showed that using abspath(__filename__) should accomplish this.
bootstrap.py
patch
|
blob
|
history
diff --git
a/bootstrap.py
b/bootstrap.py
index
f178bda
..
3aac647
100755
(executable)
--- 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',