diff -r c0d25de5919e Lib/venv/__init__.py --- a/Lib/venv/__init__.py Fri Jan 30 13:33:42 2015 -0500 +++ b/Lib/venv/__init__.py Sat Jan 31 09:52:14 2015 +0000 @@ -371,7 +371,7 @@ clear=clear, symlinks=symlinks, with_pip=with_pip) builder.create(env_dir) -def main(args=None): +def main(args=None, pyvenv=False): compatible = True if sys.version_info < (3, 3): compatible = False @@ -381,8 +381,9 @@ raise ValueError('This script is only for use with Python >= 3.3') else: import argparse + name = __name__ if not pyvenv else 'pyvenv' - parser = argparse.ArgumentParser(prog=__name__, + parser = argparse.ArgumentParser(prog=name, description='Creates virtual Python ' 'environments in one or ' 'more target ' diff -r c0d25de5919e Tools/scripts/pyvenv --- a/Tools/scripts/pyvenv Fri Jan 30 13:33:42 2015 -0500 +++ b/Tools/scripts/pyvenv Sat Jan 31 09:52:14 2015 +0000 @@ -4,7 +4,7 @@ rc = 1 try: import venv - venv.main() + venv.main(pyvenv=True) rc = 0 except Exception as e: print('Error: %s' % e, file=sys.stderr)