Skip to content

Commit

Permalink
Remove unused utils.find_in_path() (#190)
Browse files Browse the repository at this point in the history
shutil.which() is available since Python 3.3.
  • Loading branch information
cjmayo authored Dec 15, 2020
1 parent 3211436 commit 28945e6
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions fract4dgui/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,6 @@ def input_add(fd, cb):
GLib.IO_IN | GLib.IO_HUP | GLib.IO_PRI, cb)


def find_in_path(exe):
# find an executable along PATH env var
pathstring = os.environ["PATH"]
if not pathstring:
return None
paths = pathstring.split(":")
for path in paths:
full_path = os.path.join(path, exe)
if os.path.exists(full_path):
return full_path
return None


def stack_trace():
stack = inspect.stack()
str = ""
Expand Down

0 comments on commit 28945e6

Please sign in to comment.