def import_services_from_directory(self, dir_name, base_dir): """ dir_name points to a directory. If dist2 is True, the directory is assumed to be a Distutils2 one and its setup.cfg file is read and all the modules from packages pointed to by the 'files' section are scanned for services. If dist2 is False, this will be treated as a directory with a flat list of Python source code to import, as is the case with services that have been hot-deployed. """ for py_path in visit_py_source(dir_name): self.import_services_from_file(py_path, False, base_dir)