MCPcopy Index your code
hub / github.com/RustPython/RustPython / _add_python_opts

Method _add_python_opts

Lib/test/libregrtest/main.py:715–735  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

713 # continue executing main()
714
715 def _add_python_opts(self) -> None:
716 python_opts: list[str] = []
717 regrtest_opts: list[str] = []
718
719 environ, keep_environ = self._add_cross_compile_opts(regrtest_opts)
720 if self.ci_mode:
721 self._add_ci_python_opts(python_opts, keep_environ)
722
723 if (not python_opts) and (not regrtest_opts) and (environ is None):
724 # Nothing changed: nothing to do
725 return
726
727 # Create new command line
728 cmd = list(sys.orig_argv)
729 if python_opts:
730 cmd[1:1] = python_opts
731 if regrtest_opts:
732 cmd.extend(regrtest_opts)
733 cmd.append("--dont-add-python-opts")
734
735 self._execute_python(cmd, environ)
736
737 def _init(self):
738 setup_process()

Callers 1

mainMethod · 0.95

Calls 6

_add_ci_python_optsMethod · 0.95
_execute_pythonMethod · 0.95
listClass · 0.85
extendMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected