comparison python/which.py @ 898:e7ab4cf29f7b

py3
author Jeff Hammel <k0scist@gmail.com>
date Mon, 01 Aug 2022 16:42:02 -0700
parents e4221e45d6c1
children
comparison
equal deleted inserted replaced
897:ba2630ce851b 898:e7ab4cf29f7b
12 if os.path.isfile(os.path.join(dir, fileName + ".exe")): 12 if os.path.isfile(os.path.join(dir, fileName + ".exe")):
13 return os.path.join(dir, fileName + ".exe") 13 return os.path.join(dir, fileName + ".exe")
14 14
15 if __name__ == '__main__': 15 if __name__ == '__main__':
16 for i in sys.argv[1:]: 16 for i in sys.argv[1:]:
17 print which(i) 17 print(which(i))