def reload(datadir=None):
    if not datadir:
        datadir = _os.getenv('ROMEO_DATA','/etc/hostdb')
    entity.namespace.pop('romeo', None)
    entity.namespace['romeo'] = set()
    cachedb = _os.path.join(datadir, CACHEDB)

    if _os.path.exists(cachedb):
        fd = open(cachedb, 'rb')
        while True:
            try:
                entity.namespace['romeo'].add(
                    foundation.RomeoKeyValue.deserialize(fd)
                )
            except EOFError:
                fd.close()
                return
            except: continue

    from romeo.directives import Preprocessor
    pp = Preprocessor(datadir)
    for f in _glob.glob('%s/*.yaml' % (datadir,)):
        try:
            fd = open(f, 'r')
            outstr = pp.pre_process(fd,f)
            fd.close()
            rd = _copy.deepcopy(_yaml.load(outstr, Loader=_Loader))
            rd.append({'FILENAME': f})
            pp.post_process(rd,f)
            entity.namespace['romeo'].add(
                foundation.RomeoKeyValue('ENVIRONMENT', rd)
            )
        except: _traceback.print_exc()
    pp.shutdown()
    Preprocessor.delete(pp) #invalidate the Entity now
Re/load Romeo data files parse them and create object
dataset/ETHPy150Open OrbitzWorldwide/droned/romeo/lib/romeo/__init__.py/reload