ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/gclib/tophat_cpp/tophat
(Generate patch)
# Line 2423 | Line 2423
2423   # (current script path is tested first, then PATH envvar)
2424   def which(program):
2425      def is_executable(fpath):
2426 <        return os.path.exists(fpath) and os.access(fpath, os.X_OK)
2426 >        return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
2427      fpath, fname = os.path.split(program)
2428      if fpath:
2429          if is_executable(program):

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines