Dynamically find path of markdown-toc executable
This commit is contained in:
3
runtests
3
runtests
@@ -94,7 +94,8 @@ def _migrations():
|
|||||||
|
|
||||||
@_target
|
@_target
|
||||||
def _toc():
|
def _toc():
|
||||||
_run(['node_modules/.bin/markdown-toc', '-i', 'README.md'])
|
npm_bindir = check_output(['npm', 'bin']).strip()
|
||||||
|
_run(['node', os.path.join(npm_bindir, 'markdown-toc'), '-i', 'README.md'])
|
||||||
_run(['git', 'diff', '--quiet'])
|
_run(['git', 'diff', '--quiet'])
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user