diff --git a/ox/file.py b/ox/file.py index a983662..7d4c609 100644 --- a/ox/file.py +++ b/ox/file.py @@ -42,6 +42,9 @@ def is_exe(fpath): return os.path.isfile(fpath) and os.access(fpath, os.X_OK) def which(program): + local = os.path.expanduser('~/.ox/bin/%s' % program) + if os.path.exists(local): + return local fpath, fname = os.path.split(program) if fpath: if is_exe(program):