Dynamically find path of markdown-toc executable
This commit is contained in:
parent
8eaf6be8fa
commit
dec06d2837
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'])
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user