[elbe-devel] [PATCH 2/2] Fix xml catalog

John Ogness john.ogness at linutronix.de
Wed Jun 7 07:04:21 CEST 2017


Sorry, the patch snippet from my last email was incorrect. This is what
it should have looked like.

On 2017-06-07, John Ogness <john.ogness at linutronix.de> wrote:
> But the second problem is that this change causes elbe to always look
> for the catalog.xml relative to the elbe binary. This works when elbe is
> run from the source directory but does not when installed. I did this
> change to the file _instead_ of your change and it worked for me:
>
--- a/elbepack/directories.py
+++ b/elbepack/directories.py
@@ -34,9 +34,10 @@ def init_directories(elbe_relpath):
 
     if elbe_exe.startswith ("/usr/bin/"):
         examples_dir = "/usr/share/doc/elbe-doc/examples"
+        os.environ['XML_CATALOG_FILES'] = "/usr/share/xml/elbe-common/catalog.ml"
     else:
         examples_dir = os.path.join (elbe_dir, "examples")
-
+        os.environ['XML_CATALOG_FILES'] = elbe_dir + "/schema/catalog.xml"
 
 def get_cmdlist():
     return [ x for _, x, _ in
     iter_modules(elbepack.commands.__path__) ]

John Ogness




More information about the elbe-devel mailing list