Пример #1
0
 def finalize_options(self):
     if not self.application:
         raise errors.DistutilsArgError('application is required')
     if self.env_file and not os.path.exists(self.env_file):
         raise errors.DistutilsArgError(
             'environment file "{}" does not exist'.format(
                 self.env_file))
Пример #2
0
 def finalize_options(self):
     if not self.root:
         raise errors.DistutilsArgError("``root`` option is required.")
     self.root = Path(self.root)
     if not self.root.exists():
         raise errors.DistutilsFileError(f"``{self.root}`` does not exist.")