summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/pyvenv
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/scripts/pyvenv')
-rwxr-xr-xTools/scripts/pyvenv6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tools/scripts/pyvenv b/Tools/scripts/pyvenv
index 978d691..1fb42c6 100755
--- a/Tools/scripts/pyvenv
+++ b/Tools/scripts/pyvenv
@@ -1,6 +1,12 @@
#!/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