def index_filedirectory(filename): from etl_filedirectory import Connector_Filedirectory connector_filedirectory = Connector_Filedirectory() result = connector_filedirectory.index(filename) return result
def index_filedirectory(filename, config=None): from etl_filedirectory import Connector_Filedirectory etl_filedirectory = Connector_Filedirectory() # set alternate config options (will overwrite config options from config file) if config: for option in config: etl_filedirectory.config[option] = config[option] result = etl_filedirectory.index(filename) etl_filedirectory.commit() return result