Skip to content

Commit

Permalink
bootstrap: fix path magic on windows
Browse files Browse the repository at this point in the history
It was reported that argv[0] doesn't get set on windows. Some research
showed that using abspath(__filename__) should accomplish this.
  • Loading branch information
Brandon Philips committed Jun 11, 2012
1 parent 9cd14a0 commit b191336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap.py
Expand Up @@ -21,7 +21,7 @@
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',
Expand Down

0 comments on commit b191336

Please sign in to comment.