1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Description: Move CSS file out of python path.
This patch separates Python code from CSS by moving the issuetracker.css file
to an other path: /usr/share/sphinx/contrib/issuetracker/
Author: Fladischer Michael <FladischerMichael@fladi.at>
Last-Update: 2011-08-28
Forwarded: not-needed
--- a/sphinxcontrib/issuetracker.py
+++ b/sphinxcontrib/issuetracker.py
@@ -405,9 +405,13 @@
return
app.info(bold('Copying issuetracker stylesheet... '), nonl=True)
dest = path.join(app.builder.outdir, '_static', 'issuetracker.css')
- source = path.join(path.abspath(path.dirname(__file__)),
+ source = '/usr/share/sphinx/contrib/issuetracker/issuetracker.css'
+ try:
+ copyfile(source, dest)
+ except IOError:
+ source = path.join(path.abspath(path.dirname(__file__)),
'issuetracker.css')
- copyfile(source, dest)
+ copyfile(source, dest)
app.info('done')
|