File: use_debian_share

package info (click to toggle)
trac-authopenid 0.4.7-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 344 kB
  • ctags: 173
  • sloc: python: 703; makefile: 8
file content (18 lines) | stat: -rw-r--r-- 728 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Subject: Place htdocs in /usr/share
Description: Upstream source includes some CSS, JS and images
 for the sign-in view. Place them in /usr/share instead of the
 python library path.

diff --git a/authopenid/authopenid.py b/authopenid/authopenid.py
index d21ce21..da98b19 100644
--- a/authopenid/authopenid.py
+++ b/authopenid/authopenid.py
@@ -816,7 +816,7 @@ class AuthOpenIdPlugin(Component):
    # ITemplateProvider methods
 
     def get_htdocs_dirs(self):
-        return [('authopenid', pkg_resources.resource_filename(__name__, 'htdocs'))]
+        return [('authopenid', '/usr/share/trac-authopenid/htdocs')]
 
     def get_templates_dirs(self):
         return [pkg_resources.resource_filename(__name__, 'templates')]