Пример #1
0
 def launch(self, *args, **kwargs):
     return SecurePopen([self.name] + list(args),
                        executable=self._executable,
                        security=CHROOTSecurity(ASM_FS),
                        time=kwargs.get('time'),
                        memory=kwargs.get('memory'),
                        env={},
                        cwd=self._dir)
Пример #2
0
 def launch(self, *args, **kwargs):
     return SecurePopen(
         [env['runtime']['racket'], self._script] + list(args),
         security=self._security(),
         time=kwargs.get('time'),
         memory=kwargs.get('memory'),
         address_grace=131072,
         stderr=(PIPE if kwargs.get('pipe_stderr', False) else None),
         env={'LANG': 'C'},
         cwd=self._dir)
Пример #3
0
 def launch(self, *args, **kwargs):
     return SecurePopen(
         self.get_cmdline() + list(args),
         executable=self.get_executable(),
         security=self.get_security(),
         address_grace=self.get_address_grace(),
         time=kwargs.get('time'),
         memory=kwargs.get('memory'),
         stderr=(PIPE if kwargs.get('pipe_stderr', False) else None),
         env=self.get_env(),
         cwd=self._dir,
         nproc=self.get_nproc())