setup.py: Fix bug if setup is not in the current working directory.

This commit is contained in:
Valentin Lorentz 2013-02-02 19:56:54 +01:00
parent 20ad495483
commit ac8f2c662f

View File

@ -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,