summaryrefslogtreecommitdiff
path: root/gtkdoc/mkhtml.py
diff options
context:
space:
mode:
Diffstat (limited to 'gtkdoc/mkhtml.py')
-rw-r--r--gtkdoc/mkhtml.py17
1 files changed, 1 insertions, 16 deletions
diff --git a/gtkdoc/mkhtml.py b/gtkdoc/mkhtml.py
index 73eda12..52df3f4 100644
--- a/gtkdoc/mkhtml.py
+++ b/gtkdoc/mkhtml.py
@@ -48,21 +48,6 @@ def run_xsltproc(options, args):
return subprocess.call(command + args, stderr=open('profile.txt', 'w'))
-def get_dirs(uninstalled):
- if uninstalled:
- # this does not work from buiddir!=srcdir
- gtkdocdir = os.path.split(sys.argv[0])[0]
- if not os.path.exists(gtkdocdir + '/gtk-doc.xsl'):
- # try 'srcdir' (set from makefiles) too
- if os.path.exists(os.environ.get("ABS_TOP_SRCDIR", '') + '/gtk-doc.xsl'):
- gtkdocdir = os.environ['ABS_TOP_SRCDIR']
- styledir = gtkdocdir + '/style'
- else:
- gtkdocdir = os.path.join(config.datadir, 'gtk-doc/data')
- styledir = gtkdocdir
- return (gtkdocdir, styledir)
-
-
def run(options):
logging.info('options: %s', str(options.__dict__))
@@ -74,7 +59,7 @@ def run(options):
quiet = '1'
remaining_args = options.args[2:]
- (gtkdocdir, styledir) = get_dirs(options.uninstalled)
+ (gtkdocdir, styledir) = config.get_dirs(options.uninstalled)
res = run_xsltproc(options, [
'--nonet',