bugfix
This commit is contained in:
parent
47a1647f9a
commit
055c3d3699
@ -102,13 +102,13 @@ class BlocksApp(App):
|
|||||||
def get_user_data_path(self):
|
def get_user_data_path(self):
|
||||||
if platform == 'android':
|
if platform == 'android':
|
||||||
Environment = autoclass('android.os.Environment')
|
Environment = autoclass('android.os.Environment')
|
||||||
sdpath = Environment.get_running_app().getExternalStorageDirectory()
|
sdpath = Environment.getExternalStorageDirectory()
|
||||||
return str(sdpath)
|
return str(sdpath)
|
||||||
sdpath = App.get_running_app().user_data_dir
|
sdpath = App.get_running_app().user_data_dir
|
||||||
return str(sdpath)
|
return str(sdpath)
|
||||||
|
|
||||||
def get_profile_name(self):
|
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)
|
print('profile_path=', fname)
|
||||||
return fname
|
return fname
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user