parameters: (self)
docstring: Add packages
docstring_summary: Add packages
docstring_tokens: Add packages
function: def add_packages(self):
          """Add packages"""
          basedir = self.basedir if self.basedir is not None else ''
          fnames, _selfilter = getopenfilenames(parent=self, basedir=basedir,
                        caption='Add packages', filters='*.exe *.zip *.tar.gz')
          if fnames:
              self.basedir = osp.dirname(fnames[0])
              self.table.add_packages(fnames)
function_tokens: def add_packages ( self ) : basedir = self . basedir if self . basedir is not None else '' fnames , _selfilter = getopenfilenames ( parent = self , basedir = basedir , caption = 'Add packages' , filters = '*.exe *.zip *.tar.gz' ) if fnames : self . basedir = osp . dirname ( fnames [ 0 ] ) self . table . add_packages ( fnames )