Skip to content

Commit e7b1051

Browse files
committed
Document get_exe_path()
1 parent 52b949e commit e7b1051

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎igcommit/utils.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99

1010
defget_exe_path(exe):
11+
"""Traverse the PATH to find where the executable is
12+
13+
This should behave similar to the shell built-in "which".
14+
"""
1115
fordir_pathinenviron['PATH'].split(':'):
1216
path=dir_path.strip('"') +'/'+exe
1317
ifaccess(path, X_OK):

0 commit comments

Comments
(0)