def _spawnProcess(self, proto, sibling, *args):
import twisted
subenv = dict(os.environ)
subenv['PYTHONPATH'] = os.pathsep.join(
[os.path.abspath(
os.path.dirname(os.path.dirname(twisted.__file__))),
subenv.get('PYTHONPATH', '')
])
return reactor.spawnProcess(
proto,
sys.executable,
[sys.executable,
filepath.FilePath(__file__).sibling(sibling).path,
reactor.__class__.__module__] + list(args),
env=subenv,
)
评论列表
文章目录