Skip to content

Commit

Permalink
Revert to os.path.abspath to avoid resolving symlinks.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Aug 12, 2022
1 parent 5d2420a commit 7d1b3c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/briefcase/commands/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,9 @@ def _write_requirements_file(self, app: BaseConfig, requirements_path):
if any(sep in requirement for sep in separators) and (
not _has_url(requirement)
):
requirement = (self.base_path / requirement).resolve()
# We use os.path.abspath() rather than Path.resolve()
# because we *don't* want Path's symlink resolving behavior.
requirement = os.path.abspath(self.base_path / requirement)
f.write(f"{requirement}\n")

def _install_app_dependencies(self, app: BaseConfig, app_packages_path):
Expand Down

0 comments on commit 7d1b3c2

Please sign in to comment.