serna-free (4.4.0.20111005-1) 0009-Use-system-wide-xsltproc-in-publishing-plugin.patch

Summary

 serna/dist/plugins/publishing/PublisherUtils.py |   14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

    
download this patch

Patch contents

From 299ef1ff6180344c097188d8b276ab8ca01de1a5 Mon Sep 17 00:00:00 2001
From: Joachim Breitner <mail@joachim-breitner.de>
Date: Tue, 12 Jan 2010 20:00:41 +0100
Subject: Use system-wide xsltproc in publishing plugin

---
 serna/dist/plugins/publishing/PublisherUtils.py |   14 +-------------
 1 files changed, 1 insertions(+), 13 deletions(-)

diff --git a/serna/dist/plugins/publishing/PublisherUtils.py b/serna/dist/plugins/publishing/PublisherUtils.py
index bab3f9f..541c831 100755
--- a/serna/dist/plugins/publishing/PublisherUtils.py
+++ b/serna/dist/plugins/publishing/PublisherUtils.py
@@ -53,16 +53,4 @@ def get_simple_options(publisher, widget, props=["script", "stylesheet"]):
             publisher[prop] = dlg.getProperty(prop)
 
 def get_xsltproc():
-    sernaDataDir = unicode(SernaConfig.getProperty('vars/data_dir'))
-    if not sernaDataDir:
-        sernaDataDir = os.environ.get('SERNA_DATA_DIR', None)
-        if not sernaDataDir:
-            return 'xsltproc'
-
-    bindir = "bin"
-    if "darwin" == sys.platform:
-        bindir = "MacOS"
-        
-    xsltproc = os.path.join(sernaDataDir, bindir, "xsltproc")
-    
-    return find_script(xsltproc)
+    return 'xsltproc'
-- 
1.7.2.5