Skip to content

Commit

Permalink
Deprecate disutils.spawn.find_executable() in favor of shutil.which()…
Browse files Browse the repository at this point in the history
… per Tim Heap
  • Loading branch information
czender committed Nov 24, 2023
1 parent e4e2e05 commit 3b3f5f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nco/nco.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
nco module. Use Nco class as interface.
"""
import distutils.spawn
import shutil
import os.path
import re
import shlex
Expand Down Expand Up @@ -52,7 +52,7 @@ def __init__(
if "NCOpath" in os.environ:
self.nco_path = os.environ["NCOpath"]
else:
self.nco_path = os.path.split(distutils.spawn.find_executable("ncks"))[0]
self.nco_path = os.path.split(shutil.which("ncks"))[0]

self.operators = operators
self.return_cdf = returnCdf
Expand Down

0 comments on commit 3b3f5f0

Please sign in to comment.