Skip to content

Commit

Permalink
Remove dependency on distutils, fixes #657
Browse files Browse the repository at this point in the history
  • Loading branch information
robtaylor committed Oct 4, 2024
1 parent 7895353 commit 59f4bb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doorstop/core/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"""Functions to edit documents and items."""

import os
import shutil
import subprocess
import sys
import tempfile
import time
from distutils.spawn import find_executable

from doorstop import common
from doorstop.common import DoorstopError
Expand Down Expand Up @@ -87,7 +87,7 @@ def launch(path, tool=None):
elif sys.platform.startswith("darwin"):
args = ["open", path]
elif os.name == "nt":
cygstart = find_executable("cygstart")
cygstart = shutil.which("cygstart")
if cygstart:
args = [cygstart, path]
else:
Expand Down

0 comments on commit 59f4bb2

Please sign in to comment.