Package tboard :: Module utilities
[hide private]
[frames] | no frames]

Source Code for Module tboard.utilities

 1  import sys; 
 2  import os; 
3 4 5 6 -class Utilities(object):
7 8 @staticmethod
9 - def findFile(path, matchFunc=os.path.isfile):
10 if path is None: 11 return None 12 for dirname in sys.path: 13 candidate = os.path.join(dirname, path) 14 if matchFunc(candidate): 15 return candidate 16 return None;
17