search for node dependencies in output dir first

This commit is contained in:
Nick Sweeting 2020-08-18 18:40:19 -04:00
parent 4566904db2
commit 7144e0bdce
3 changed files with 5 additions and 5 deletions

View file

@ -780,7 +780,7 @@ globals().update(CONFIG)
os.environ["TZ"] = 'UTC'
# add ./node_modules/.bin to $PATH so we can use node scripts in extractors
NODE_BIN_PATH = str((Path(CONFIG["OUTPUT_DIR"]) / 'node_modules' / '.bin').resolve())
NODE_BIN_PATH = str((Path(CONFIG["OUTPUT_DIR"]).absolute() / 'node_modules' / '.bin'))
sys.path.append(NODE_BIN_PATH)