Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lengau committed Aug 21, 2024
1 parent dc44a4b commit f7a3886
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions craft_parts/plugins/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def _get_rewrite_shebangs_commands(self) -> list[str]:
return [
textwrap.dedent(
f"""\
find "{self._part_info.part_install_dir}" -type f -executable -print0 | xargs -0 \\
find "{self._get_venv_directory()}" -type f -executable -print0 | xargs -0 \\
sed -i "1 s|^#\\!${{PARTS_PYTHON_VENV_INTERP_PATH}}.*$|{script_interpreter}|"
"""
)
Expand All @@ -289,8 +289,8 @@ def _get_handle_symlinks_commands(self) -> list[str]:
"""Get commands for handling Python symlinks."""
if self._should_remove_symlinks():
return [
f"echo Removing python symlinks in {self._part_info.part_install_dir}/bin",
f'rm "{self._part_info.part_install_dir}"/bin/python*',
f"echo Removing python symlinks in {self._get_venv_directory()}/bin",
f'rm "{self._get_venv_directory()}"/bin/python*',
]
return ['ln -sf "${symlink_target}" "${PARTS_PYTHON_VENV_INTERP_PATH}"']

Expand Down

0 comments on commit f7a3886

Please sign in to comment.