From ac8f2c662f5564a341fcf295a7f8d73697c092ac 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 d06c30710..986c93f74 100644 --- a/setup.py +++ b/setup.py @@ -34,6 +34,8 @@ import os import sys import subprocess +os.chdir(os.path.dirname(__file__)) + version = None try: proc = subprocess.Popen('git show HEAD --format=%ci', shell=True,