def LocatePath(fileName, searchPaths):
 import os
 return os.path.abspath(os.path.split(LocateFileName(fileName, searchPaths))[0])

def LocatePath ( fileName , searchPaths ) : import os return os . path . abspath ( os . path . split ( LocateFileName ( fileName , searchPaths ) ) [ 0 ] )
like locatefilename .