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 170183adbd
commit 4a032834fb
1 changed files with 2 additions and 0 deletions

View File

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