Staging
v0.8.1
Revision 5fd33b5926eb8c9352bf5718369b4a8d72c4bb44 authored by Ned Deily on 08 July 2017, 03:33:27 UTC, committed by Ned Deily on 08 July 2017, 03:33:27 UTC
1 parent 8913311
Raw File
pyvenv
#!/usr/bin/env python3
if __name__ == '__main__':
    import sys
    import pathlib

    executable = pathlib.Path(sys.executable or 'python3').name
    print('WARNING: the pyenv script is deprecated in favour of '
          f'`{executable} -m venv`', file=sys.stderr)

    rc = 1
    try:
        import venv
        venv.main()
        rc = 0
    except Exception as e:
        print('Error: %s' % e, file=sys.stderr)
    sys.exit(rc)
back to top