From c849321c725ce71c3f0483b025de02e5f15266bc Mon Sep 17 00:00:00 2001 From: Anthony Johnson Date: Thu, 14 Dec 2017 12:27:42 -0700 Subject: [PATCH] Update prerelease invoke command to call with explicit path Run gh-changelog with full path, in case env does not have node set up. --- tasks.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tasks.py b/tasks.py index 2ee0536fa7b..1bad5366818 100644 --- a/tasks.py +++ b/tasks.py @@ -40,13 +40,19 @@ def prepare(ctx, version): 'contrib', 'changelog.hbs', ) + bin_path = os.path.join( + os.path.dirname(__file__), + 'node_modules', + '.bin', + ) cmd = ( - 'gh-changelog ' + '{bin_path}/gh-changelog ' '-o rtfd -r readthedocs.org ' '--file {changelog_path} ' '--template {template_path} ' '--header "Version {version}"' ).format( + bin_path=bin_path, version=version, template_path=template_path, changelog_path=changelog_path,