[elbe-devel] [PATCH v2 2/7] directories: Remove unused examples_dir
Bastian Germann
bage at linutronix.de
Tue Dec 20 11:31:25 CET 2022
Signed-off-by: Bastian Germann <bage at linutronix.de>
---
elbepack/directories.py | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/elbepack/directories.py b/elbepack/directories.py
index aea8105a7e..c088269c13 100644
--- a/elbepack/directories.py
+++ b/elbepack/directories.py
@@ -13,7 +13,6 @@ import elbepack
elbe_exe = None
elbe_dir = None
-examples_dir = None
def init_directories(elbe_relpath):
@@ -21,15 +20,11 @@ def init_directories(elbe_relpath):
# this is the very first function that is called by 'elbe'
global elbe_exe #pylint: disable=global-statement
global elbe_dir #pylint: disable=global-statement
- global examples_dir #pylint: disable=global-statement
elbe_exe = os.path.abspath(os.path.realpath(elbe_relpath))
elbe_dir = os.path.dirname(elbe_exe)
- if elbe_exe.startswith("/usr/bin/"):
- examples_dir = "/usr/share/doc/elbe-doc/examples"
- else:
- examples_dir = os.path.join(elbe_dir, "examples")
+ if not elbe_exe.startswith("/usr/bin/"):
# Set XML catalog if elbe is run from source
xmlcat = os.path.join(elbe_dir, "schema/catalog.xml")
--
2.30.2
More information about the elbe-devel
mailing list