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:
@@ -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'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user