commit fcfdba14bd87296cad439347ad91092e9d4e2001
parent 79efc546082ce82baf6d0fee46bcfe9cb3e4c3f7
Author: ThomasV <thomasv@electrum.org>
Date: Tue, 27 Mar 2018 22:20:50 +0200
Merge pull request #4189 from romanz/env-fix
electrum-env: allow running from other directories as well
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/electrum-env b/electrum-env
@@ -11,6 +11,7 @@
PYTHON_VER="$(python3 -c 'import sys; print(sys.version[:3])')"
+cd $(dirname $0)
if [ -e ./env/bin/activate ]; then
source ./env/bin/activate
else