We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9bc901 commit d488c31Copy full SHA for d488c31
1 file changed
src/manage/aliasutils.py
@@ -99,7 +99,7 @@ def _create_alias(
99
p = cmd.global_dir / name
100
# Raise exception if someone has tried to get us to write outside of the
101
# intended directory
102
- if p.relative_to(cmd.global_dir).parts != (name,):
+ if str(p.relative_to(cmd.global_dir)) != name:
103
raise ValueError(f"Invalid alias name: {name}")
104
if not p.match("*.exe"):
105
p = p.with_name(p.name + ".exe")
@@ -239,7 +239,6 @@ def _parse_entrypoint_line(line):
239
name, sep, rest = line.partition("=")
240
name = name.strip()
241
if name and name[0].isalnum() and sep and rest:
242
- print(PurePath(name).parent)
243
if PurePath(name).parent:
244
return None, None, None
245
mod, sep, rest = rest.partition(":")
0 commit comments