Skip to content

Commit 1167b8e

Browse files
rlneumillerAlansCodeLog
authored andcommitted
Fixed Debugpy not found when path has trailing whitespace.
Closes #29
1 parent 5608b02 commit 1167b8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def check_for_debugpy():
5959
match = re.search("Location: (.*)", pip_info)
6060
#normalize slashes
6161
if match is not None:
62-
match = match.group(1)
62+
match = match.group(1).rstrip()
6363
if os.path.exists(match+"/debugpy"):
6464
return match
6565

0 commit comments

Comments
 (0)