From b191336180dd94594809b733297ba6ed2c84ec2a Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Mon, 11 Jun 2012 10:19:23 -0700 Subject: [PATCH] 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. --- bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap.py b/bootstrap.py index f178bda6e1..3aac6479e1 100755 --- a/bootstrap.py +++ b/bootstrap.py @@ -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',