Commit 198edb16 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

stop using needless easy_install._safe_arg.

parent 9cc19ea9
......@@ -67,7 +67,7 @@ Buildout will be restarted automatically to have this change applied.
""" % dict(wanted_python=self.wanted_python,
running_python=self.running_python)
self.logger.info(message)
args = map(zc.buildout.easy_install._safe_arg, sys.argv)
args = sys.argv[:]
env = os.environ
if 'ORIG_PYTHON' not in env:
env['ORIG_PYTHON'] = sys.executable
......@@ -78,7 +78,7 @@ Buildout will be restarted automatically to have this change applied.
self.rebootstrap_directory != self.buildout['buildout']['directory']:
self.logger.info('Installing section %r to provide %r' % (
self.python_section, self.wanted_python))
args = map(zc.buildout.easy_install._safe_arg, sys.argv)
args = sys.argv[:]
if 'install' in args:
args = args[:args.index('install')]
......@@ -146,7 +146,7 @@ Buildout will be restarted automatically with the original Python.
self._logger.info(message)
if getattr(self, 'dry_run', False):
sys.exit()
args = map(zc.buildout.easy_install._safe_arg, sys.argv)
args = sys.argv[:]
env = os.environ
orig_python = env['ORIG_PYTHON']
os.execve(orig_python, [orig_python] + args, env)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment