Allow calling setup.py from a subdirectory

This commit is contained in:
Kodi Arfer 2016-10-13 13:32:13 -07:00
parent 23c457cee5
commit ec6e264753

View File

@ -26,6 +26,8 @@ import subprocess
from setuptools import find_packages, setup
os.chdir(os.path.split(os.path.abspath(__file__))[0])
PKG = "hy"
VERSIONFILE = os.path.join(PKG, "version.py")
try: