|
@ -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_local = not is_bundle and os.path.exists(os.path.join(script_dir, "setup-release.py")) |
|
|
is_android = 'ANDROID_DATA' in os.environ |
|
|
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: |
|
|
if is_local or is_android: |
|
|
sys.path.insert(0, os.path.join(script_dir, 'packages')) |
|
|
sys.path.insert(0, os.path.join(script_dir, 'packages')) |
|
|
elif is_bundle and sys.platform=='darwin': |
|
|
elif is_bundle and sys.platform=='darwin': |
|
|