1
0

kivy: fix some resource path issues

When running kivy on Linux desktop,
running from git clone, `./run_electrum -g kivy` worked,
but `pip install -e .; electrum -g kivy` did not.
This was due to the relative paths using cwd as base.

see #6835
This commit is contained in:
SomberNight
2020-12-10 06:42:08 +01:00
parent 1851ec962f
commit 9e45108395
18 changed files with 90 additions and 65 deletions

View File

@@ -49,9 +49,6 @@ if is_local: # running from source
# developers should probably see all deprecation warnings.
warnings.simplefilter('default', DeprecationWarning)
# move this back to gui/kivy/__init.py once plugins are moved
os.environ['KIVY_DATA_DIR'] = os.path.abspath(os.path.dirname(__file__)) + '/electrum/gui/kivy/data/'
if is_local or is_android:
sys.path.insert(0, os.path.join(script_dir, 'packages'))