Skip to content

Commit

Permalink
Fixed Debugpy not found when path has trailing whitespace.
Browse files Browse the repository at this point in the history
Closes #29
  • Loading branch information
rlneumiller authored and AlansCodeLog committed Dec 20, 2022
1 parent 5608b02 commit 1167b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def check_for_debugpy():
match = re.search("Location: (.*)", pip_info)
#normalize slashes
if match is not None:
match = match.group(1)
match = match.group(1).rstrip()
if os.path.exists(match+"/debugpy"):
return match

Expand Down

0 comments on commit 1167b8e

Please sign in to comment.