This commit is contained in:
shrlnm 2019-10-22 08:52:09 +03:00
parent 0ef783e52f
commit e7f3734f43

View File

@ -135,13 +135,16 @@ def get_file_list_from_clip( pattern ):
return res
def get_file_from_clip( filename ):
if (filename.lower().endswith('bqm') \
or '/sg' in filename.lower()) and \
mod_globals.os != 'android':
if (filename.lower().endswith('bqm')
or '/sg' in filename.lower()):
mode = 'rb'
else:
mode = 'r'
if (mod_globals.os == 'android'
or mod_globals.clip_arc != ''):
mode = 'r'
if mod_globals.clip_arc=='':
return open(os.path.join(mod_globals.cliproot, filename), mode)
else: