Skip to content

Commit

Permalink
Fix flipped debug check in win32com.server.register (#2257)
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed May 9, 2024
1 parent c126ac1 commit 0163cda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions com/win32com/server/register.py
Expand Up @@ -98,9 +98,9 @@ def _find_localserver_exe(mustfind):
if sys.platform != "win32":
return sys.executable
if os.path.splitext(os.path.basename(pythoncom.__file__))[0].endswith("_d"):
exeBaseName = "pythonw.exe"
else:
exeBaseName = "pythonw_d.exe"
else:
exeBaseName = "pythonw.exe"
# First see if in the same directory as this .EXE
exeName = os.path.join(os.path.split(sys.executable)[0], exeBaseName)
if not os.path.exists(exeName):
Expand Down

0 comments on commit 0163cda

Please sign in to comment.