Skip to content

Commit 7783539

Browse files
committed
shebang and better instructions
1 parent 6bb855b commit 7783539

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

make-html.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#!/usr/bin/env python3
2+
"""Create HTML files of the tutorial."""
3+
14
import glob
25
import shutil
36
import os
@@ -7,8 +10,10 @@
710
try:
811
import mistune
912
except ImportError:
10-
print("mistune isn't installed. You can install it like this:\n\n",
11-
" thispython -m pip install mistune", file=sys.stderr)
13+
print("mistune isn't installed. You can install it like this:")
14+
print()
15+
print(">>> import pip")
16+
print(">>> pip.main(['install', '--user', 'mistune'])")
1217
sys.exit(1)
1318

1419

0 commit comments

Comments
 (0)