Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions qcore/gmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@

import math
import os
from distutils.spawn import find_executable
from shutil import copyfile, move
from shutil import copyfile, move, which
from subprocess import PIPE, Popen
from sys import byteorder
from time import time
Expand Down Expand Up @@ -4279,7 +4278,7 @@ def png(
create_dirs: allow creation of output directory if it does not exist
"""
png = True
if find_executable("gs") is None:
if shutil.which("gs") is None:
print("GS not found, not creating PNG, copying PS to PNG location.")
png = False

Expand Down