From 055c3d36991c19f4521f1c8114031fbdd114d32a Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 21 Jan 2021 13:56:33 +0800 Subject: [PATCH] bugfix --- kivyblocks/blocksapp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kivyblocks/blocksapp.py b/kivyblocks/blocksapp.py index 952045f..33b1f35 100644 --- a/kivyblocks/blocksapp.py +++ b/kivyblocks/blocksapp.py @@ -102,13 +102,13 @@ class BlocksApp(App): def get_user_data_path(self): if platform == 'android': Environment = autoclass('android.os.Environment') - sdpath = Environment.get_running_app().getExternalStorageDirectory() + sdpath = Environment.getExternalStorageDirectory() return str(sdpath) sdpath = App.get_running_app().user_data_dir return str(sdpath) def get_profile_name(self): - fname = os.path.join(self.get_user_data_path(),'.profile.json') + fname = os.path.join(self.user_data_dir,'.profile.json') print('profile_path=', fname) return fname