tMerge pull request #3959 from dtcooper/master - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit c1d2aabd54a3ab30603a97eae865aed35e925342 DIR parent 554cf91cffd450df3755462e19deb8d3ffe389a7 HTML Author: ThomasV <thomasv@electrum.org> Date: Fri, 23 Feb 2018 12:56:39 +0100 Merge pull request #3959 from dtcooper/master Add Support for Python 3.6+ in ./electrum-env Diffstat: M electrum-env | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- DIR diff --git a/electrum-env b/electrum-env t@@ -9,6 +9,8 @@ # python-qt and its dependencies will still need to be installed with # your package manager. +PYTHON_VER="$(python3 -c 'import sys; print(sys.version[:3])')" + if [ -e ./env/bin/activate ]; then source ./env/bin/activate else t@@ -17,7 +19,7 @@ else python3 setup.py install fi -export PYTHONPATH="/usr/local/lib/python3.5/site-packages:$PYTHONPATH" +export PYTHONPATH="/usr/local/lib/python${PYTHON_VER}/site-packages:$PYTHONPATH" ./electrum "$@"