def load_etc_dir(options, tags):
 etcdir = os.path.join(options.cdir, 'etc')
 sys.path.append(etcdir)
 modules = {}
 for name in list_config_modules(etcdir):
  path = os.path.join(etcdir, name)
  module = load_config_module(name, options, tags)
  modules[path] = (module, os.path.getmtime(path))
 return modules

def load_etc_dir ( options , tags ) : etcdir = os . path . join ( options . cdir , 'etc' ) sys . path . append ( etcdir ) modules = { } for name in list_config_modules ( etcdir ) : path = os . path . join ( etcdir , name ) module = load_config_module ( name , options , tags ) modules [ path ] = ( module , os . path . getmtime ( path ) ) return modules
loads any python module from tcollectors own etc directory .