def __init__(self, larch=None):
        Group.__init__(self, name=self.top_group)
        self._larch = larch
        self._sys = None
        setattr(self, self.top_group, self)

        for gname in self.core_groups:
            thisgroup = Group(name=gname)
            if gname in GroupDocs:
                thisgroup.__doc__ = GroupDocs[gname]

            setattr(self, gname, thisgroup)

        self._sys.frames      = []
        self._sys.searchGroups = [self.top_group]
        self._sys.path        = ['.']
        self._sys.localGroup  = self
        self._sys.valid_commands = []
        self._sys.moduleGroup = self
        self._sys.paramGroup = None
        self._sys.__cache__  = [None]*5

        for g in self.core_groups:
            self._sys.searchGroups.append(g)
        self._sys.core_groups = tuple(self._sys.searchGroups[:])

        self.__callbacks = {}
        orig_sys_path = sys.path[:]

        if site_config.modules_path is not None:
            for idir in site_config.modules_path:
                idirfull = os.path.abspath(idir)
                if idirfull not in self._sys.path and os.path.exists(idirfull):
                    self._sys.path.append(idirfull)

        sys.path = self._sys.path[:]
        for idir in orig_sys_path:
            idirfull = os.path.abspath(idir)
            if idirfull not in sys.path:
                sys.path.append(idirfull)

        self._sys.modules = {'_main':self}
        for gname in self.core_groups:
            self._sys.modules[gname] = getattr(self, gname)
        self._fix_searchGroups()

        self._sys.config = Group(home_dir    = site_config.home_dir,
                                 history_file= site_config.history_file,
                                 init_files  = site_config.init_files,
                                 modules_path= site_config.modules_path,
                                 larchdir    = site_config.larchdir,
                                 user_larchdir= site_config.usr_larchdir,
                                 )
dataset/ETHPy150Open xraypy/xraylarch/lib/symboltable.py/SymbolTable.__init__/original