Commit 5bdb6a18 authored by Christian Hergert's avatar Christian Hergert

html-preview: fix installation of resource files to data dir

parent 32d982a1
......@@ -8,6 +8,10 @@ dist_plugin_DATA = html-preview.plugin
moduledir = $(libdir)/gnome-builder/plugins/html_preview_plugin
dist_module_DATA = \
html_preview_plugin/__init__.py \
$(NULL)
resourcedir = $(datadir)/gnome-builder/plugins/html_preview_plugin
dist_resource_DATA = \
html_preview_plugin/markdown.css \
html_preview_plugin/markdown-view.js \
html_preview_plugin/marked.js \
......
......@@ -51,7 +51,6 @@ class HtmlPreviewData(GObject.Object, Builder.ApplicationAddin):
engine = Peas.Engine.get_default()
info = engine.get_plugin_info('html_preview_plugin')
datadir = info.get_data_dir()
print ("DATA_DIR: %s\n", datadir)
path = os.path.join(datadir, name)
return open(path, 'r').read()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment