• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env python3
2if __name__ == '__main__':
3    import sys
4    import pathlib
5
6    executable = pathlib.Path(sys.executable or 'python3').name
7    print('WARNING: the pyenv script is deprecated in favour of '
8          f'`{executable} -m venv`', file=sys.stderr)
9
10    rc = 1
11    try:
12        import venv
13        venv.main()
14        rc = 0
15    except Exception as e:
16        print('Error: %s' % e, file=sys.stderr)
17    sys.exit(rc)
18