def default_bottom_halves_after_sync(self, *args, **kwargs):
if self.func is None:
if not self.nscmd:
self.nscmd = [find_shell()]
elif not isinstance(self.nscmd, list):
self.nscmd = [self.nscmd]
if "pid" not in self.namespaces:
args = self.nscmd
elif self.init_prog is not None:
args = [self.init_prog] + self.nscmd
else:
args = [sys.executable, self.my_init, "--skip-startup-files",
"--skip-runit", "--quiet"] + self.nscmd
os.execlp(args[0], *args)
else:
if hasattr(self.func, '__call__'):
self.func(*args, **kwargs)
else:
raise NamespaceSettingError()
评论列表
文章目录