[elbe-devel] [PATCH 5/5] elbepack: remove variable elbe_exe

Thomas Weißschuh thomas.weissschuh at linutronix.de
Mon Apr 15 13:43:19 CEST 2024


No external users are left, inline it into the last remaining user
run_elbe().

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/directories.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/elbepack/directories.py b/elbepack/directories.py
index 731fd26dc03f..53d98741cde8 100644
--- a/elbepack/directories.py
+++ b/elbepack/directories.py
@@ -9,13 +9,9 @@ from pkgutil import iter_modules
 import elbepack.commands
 
 
-# set global variables that are used in other modules via imports
-elbe_exe = '-melbepack'
-
-
 def get_cmdlist():
     return [x for _, x, _ in iter_modules(elbepack.commands.__path__)]
 
 
 def run_elbe(args, **kwargs):
-    return subprocess.run([sys.executable, elbe_exe, *args], **kwargs)
+    return subprocess.run([sys.executable, '-melbepack', *args], **kwargs)

-- 
2.44.0



More information about the elbe-devel mailing list