tset KIVY_DATA_DIR in main script - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 671fe7378888117b6ade0a941a8bba2779702999 DIR parent 4b4b6efb352d31f8bf69bd8382da564ff742b4b7 HTML Author: ThomasV <thomasv@electrum.org> Date: Mon, 7 Mar 2016 21:00:55 +0100 set KIVY_DATA_DIR in main script Diffstat: M electrum | 3 +++ M gui/kivy/__init__.py | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) --- DIR diff --git a/electrum b/electrum t@@ -33,6 +33,9 @@ is_bundle = getattr(sys, 'frozen', False) is_local = not is_bundle and os.path.exists(os.path.join(script_dir, "setup-release.py")) is_android = 'ANDROID_DATA' in os.environ +# move this back to gui/kivy/__init.py once plugins are moved +os.environ['KIVY_DATA_DIR'] = os.path.abspath(os.path.dirname(__file__)) + '/gui/kivy/data/' + if is_local or is_android: sys.path.insert(0, os.path.join(script_dir, 'packages')) elif is_bundle and sys.platform=='darwin': DIR diff --git a/gui/kivy/__init__.py b/gui/kivy/__init__.py t@@ -27,7 +27,6 @@ import sys import os -os.environ['KIVY_DATA_DIR'] = os.path.abspath(os.path.dirname(__file__)) + '/data/' try: sys.argv = ['']