From ec6e2647535389439fc8ab18060b7a6c9091a3f0 Mon Sep 17 00:00:00 2001 From: Kodi Arfer Date: Thu, 13 Oct 2016 13:32:13 -0700 Subject: [PATCH] Allow calling setup.py from a subdirectory --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index 17587d4..4d0a08e 100755 --- a/setup.py +++ b/setup.py @@ -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: