diff --git a/forest/__init__.py b/forest/__init__.py index c4f00d014..85188e088 100644 --- a/forest/__init__.py +++ b/forest/__init__.py @@ -23,7 +23,7 @@ .. automodule:: forest.presets """ -__version__ = '0.16.3' +__version__ = '0.16.4' from .config import * from . import ( diff --git a/setup.py b/setup.py index 1b670d277..f5a7ac621 100644 --- a/setup.py +++ b/setup.py @@ -11,6 +11,7 @@ NAME = "forest" +JS_DIR = os.path.join(os.path.dirname(__file__), NAME, r"js") def find_version(): @@ -63,7 +64,7 @@ class BuildJSCommand(setuptools.command.build_py.build_py): """ def run(self): cwd = os.getcwd() - os.chdir(os.path.join("forest", "js")) + os.chdir(JS_DIR) if not os.path.exists("node_modules"): subprocess.check_call(["npm", "install"]) subprocess.check_call(["npm", "run", "build"])