diff --git a/doc/code2html b/doc/code2html index be62c7c..5fbd402 100755 --- a/doc/code2html +++ b/doc/code2html @@ -6,6 +6,16 @@ from importlib import import_module 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 = """