Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Follow symbolic links in init_directories
Make sure we find the correct base path if elbe is launched using a symbolic link.

Fixes: #301

Signed-off-by: Christian KNAUBER <cknauber@adaje-system.fr>
(adjusted Fixes line)
Signed-off-by: Torben Hohn <torben.hohn@linutronix.de>
Reviewed-by: Torben Hohn <torben.hohn@linutronix.de>
  • Loading branch information
K0n24d authored and torbenh3 committed May 6, 2021
1 parent d82ceed commit acac322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elbepack/directories.py
Expand Up @@ -23,7 +23,7 @@ def init_directories(elbe_relpath):
global elbe_dir #pylint: disable=global-statement
global examples_dir #pylint: disable=global-statement

elbe_exe = os.path.abspath(elbe_relpath)
elbe_exe = os.path.abspath(os.path.realpath(elbe_relpath))
elbe_dir = os.path.dirname(elbe_exe)

if elbe_exe.startswith("/usr/bin/"):
Expand Down

0 comments on commit acac322

Please sign in to comment.