add autopath to executable doc
This commit is contained in:
parent
e6de4dd459
commit
274192a30b
|
@ -6,6 +6,16 @@ from importlib import import_module
|
||||||
|
|
||||||
root="./build/api"
|
root="./build/api"
|
||||||
|
|
||||||
|
# autopath
|
||||||
|
|
||||||
|
from os.path import dirname, abspath, join, normpath
|
||||||
|
import sys
|
||||||
|
|
||||||
|
HERE = dirname(abspath(__file__))
|
||||||
|
PATH = normpath(join(HERE, '..', '..'))
|
||||||
|
if PATH not in sys.path:
|
||||||
|
sys.path.insert(1, PATH)
|
||||||
|
|
||||||
htmltmpl = """
|
htmltmpl = """
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||||
<html>
|
<html>
|
||||||
|
|
Loading…
Reference in New Issue