From 4a032834fb2476988f50f80fd915317e2cd052b8 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 2 Feb 2013 19:56:54 +0100 Subject: [PATCH] setup.py: Fix bug if setup is not in the current working directory. --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index e31eb1b17..fb042d6f2 100644 --- a/setup.py +++ b/setup.py @@ -33,6 +33,8 @@ import sys import subprocess +os.chdir(os.path.dirname(__file__)) + version = None try: proc = subprocess.Popen('git show HEAD --format=%ci', shell=True,