From bb0bdf0cb35ce485b4708181449c92d561aa6bfe Mon Sep 17 00:00:00 2001 From: andrewgryan Date: Thu, 14 May 2020 14:15:35 +0100 Subject: [PATCH] use absolute path to find JS on Windows --- forest/__init__.py | 2 +- setup.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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"])