Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gnome-builder
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Günther Wagner
gnome-builder
Commits
5bdb6a18
Commit
5bdb6a18
authored
Sep 04, 2015
by
Christian Hergert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
html-preview: fix installation of resource files to data dir
parent
32d982a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
plugins/html-preview/Makefile.am
plugins/html-preview/Makefile.am
+4
-0
plugins/html-preview/html_preview_plugin/__init__.py
plugins/html-preview/html_preview_plugin/__init__.py
+0
-1
No files found.
plugins/html-preview/Makefile.am
View file @
5bdb6a18
...
...
@@ -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
\
...
...
plugins/html-preview/html_preview_plugin/__init__.py
View file @
5bdb6a18
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment