Blob Blame History Raw
From 01352fd3531c768593cf7c1282fb5fdfc52f042d Mon Sep 17 00:00:00 2001
From: Lumir Balhar <lbalhar@redhat.com>
Date: Mon, 19 Mar 2018 14:50:47 +0100
Subject: [PATCH] Python 3 default binaries

---
 virtualenvwrapper.sh      | 6 +++---
 virtualenvwrapper_lazy.sh | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/virtualenvwrapper.sh b/virtualenvwrapper.sh
index 9c0b1ac..d21becf 100644
--- a/virtualenvwrapper.sh
+++ b/virtualenvwrapper.sh
@@ -47,19 +47,19 @@
 # Locate the global Python where virtualenvwrapper is installed.
 if [ "${VIRTUALENVWRAPPER_PYTHON:-}" = "" ]
 then
-    VIRTUALENVWRAPPER_PYTHON="$(command \which python)"
+    VIRTUALENVWRAPPER_PYTHON="$(command \which python3)"
 fi
 
 # Set the name of the virtualenv app to use.
 if [ "${VIRTUALENVWRAPPER_VIRTUALENV:-}" = "" ]
 then
-    VIRTUALENVWRAPPER_VIRTUALENV="virtualenv"
+    VIRTUALENVWRAPPER_VIRTUALENV="virtualenv-3"
 fi
 
 # Set the name of the virtualenv-clone app to use.
 if [ "${VIRTUALENVWRAPPER_VIRTUALENV_CLONE:-}" = "" ]
 then
-    VIRTUALENVWRAPPER_VIRTUALENV_CLONE="virtualenv-clone"
+    VIRTUALENVWRAPPER_VIRTUALENV_CLONE="virtualenv-clone-3"
 fi
 
 # Define script folder depending on the platorm (Win32/Unix)
diff --git a/virtualenvwrapper_lazy.sh b/virtualenvwrapper_lazy.sh
index 3902d08..da54c4b 100644
--- a/virtualenvwrapper_lazy.sh
+++ b/virtualenvwrapper_lazy.sh
@@ -5,11 +5,11 @@ export _VIRTUALENVWRAPPER_API="$_VIRTUALENVWRAPPER_API mkvirtualenv rmvirtualenv
 
 if [ -z "$VIRTUALENVWRAPPER_SCRIPT" ]
 then
-    export VIRTUALENVWRAPPER_SCRIPT="$(command \which virtualenvwrapper.sh)"
+    export VIRTUALENVWRAPPER_SCRIPT="$(command \which virtualenvwrapper-3.sh)"
 fi
 if [ -z "$VIRTUALENVWRAPPER_SCRIPT" ]
 then
-    echo "ERROR: virtualenvwrapper_lazy.sh: Could not find virtualenvwrapper.sh" 1>&2
+    echo "ERROR: virtualenvwrapper_lazy-3.sh: Could not find virtualenvwrapper-3.sh" 1>&2
 fi
 
 # Load the real implementation of the API from virtualenvwrapper.sh
-- 
2.14.3