summaryrefslogtreecommitdiffstats
path: root/ontogen.py
diff options
context:
space:
mode:
Diffstat (limited to 'ontogen.py')
-rw-r--r--ontogen.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ontogen.py b/ontogen.py
index 75318a0..96a578b 100644
--- a/ontogen.py
+++ b/ontogen.py
@@ -7,7 +7,7 @@ from sys import stdout, stderr
from datetime import date
from textwrap import TextWrapper, dedent
from os import extsep, mkdir, symlink, remove
-from os.path import basename, exists, isdir, islink, splitext
+from os.path import basename, dirname, exists, isdir, islink, join, splitext
from subprocess import call
from shlex import split
#import codecs
@@ -21,7 +21,7 @@ log = logging.getLogger(__name__)
VERSIONSEP = '/'
ONTSEP = '#'
-TEMPLATE_GENSHI = 'ontogen.template'
+TEMPLATE_GENSHI = join(dirname(__file__), 'ontogen.template')
TEMPLATE_XSLT = 'ns-schema.xsl'
TEXT_INDENT = ' '
TW = TextWrapper(initial_indent=TEXT_INDENT, subsequent_indent=TEXT_INDENT)