We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 768deb8 commit c1bfec8Copy full SHA for c1bfec8
src/manage/aliasutils.py
@@ -116,7 +116,8 @@ def _create_alias(
116
launcher = _if_exists(launcher, "-64")
117
chosen_by = "fallback default"
118
LOGGER.debug("Create %s for %s using %s, chosen by %s", name,
119
- relative_to(target, cmd.install_dir), launcher, chosen_by)
+ relative_to(target, getattr(cmd, "install_dir", None)),
120
+ launcher, chosen_by)
121
if not launcher or not launcher.is_file():
122
raise NoLauncherTemplateError()
123
@@ -268,7 +269,8 @@ def _scan_one(cmd, install, root):
268
269
entrypoints = [f for f in [d / "entry_points.txt" for d in dist_info] if f.is_file()]
270
if len(entrypoints):
271
LOGGER.debug("Found %i entry_points.txt files in %i dist-info in %s",
- len(entrypoints), len(dist_info), relative_to(root, cmd.install_dir))
272
+ len(entrypoints), len(dist_info),
273
+ relative_to(root, getattr(cmd, "install_dir", None)))
274
275
# Filter down to [console_scripts] and [gui_scripts]
276
for ep in entrypoints:
0 commit comments