add autopath to executable doc

This commit is contained in:
gwen 2012-06-25 16:51:26 +02:00
parent e6de4dd459
commit 274192a30b
1 changed files with 10 additions and 0 deletions

View File

@ -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 = """
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>