Skip to content

Commit

Permalink
fix: remove duplicated interpreter path mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
azubieta committed Apr 8, 2022
1 parent 60ae6e7 commit 5584a35
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions appimagebuilder/modules/setup/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,14 @@ def generate(self):
self._patch_interpreted_executables(executables, patcher)
self._link_interpreters_from_runtimes(patcher.used_interpreters_paths)
self._create_default_runtime(runtime_env)
self._setup_path_mappings(runtime_env, patcher.used_interpreters_paths)
self._setup_path_mappings(runtime_env, patcher.used_interpreters_paths.values())
self._write_appdir_env(runtime_env)
self._deploy_apprun(resolver)

def _setup_path_mappings(self, runtime_env, interpreter_paths: dict):
def _setup_path_mappings(self, runtime_env, interpreter_paths: list):
# map used interpreters
for path in interpreter_paths.values():
interpreter_paths = sorted(set(interpreter_paths))
for path in interpreter_paths:
runtime_env.append(self.path_mappings_env, "/" + path + ":$APPDIR/" + path)

# map build dir to allow caches to work
Expand Down

0 comments on commit 5584a35

Please sign in to comment.