def openHubFile(filepath, filename, mode):
 global _hubFiles
 hubFile = openFile(os.path.join(filepath, filename), mode)
 _hubFiles.append(hubFile)
 return hubFile

def openHubFile ( filepath , filename , mode ) : global _hubFiles hubFile = openFile ( os . path . join ( filepath , filename ) , mode ) _hubFiles . append ( hubFile ) return hubFile
open an hdf5 datastore file and register it so that it is closed even on interpreter crash .