9q fix#4
This commit is contained in:
parent
0ef783e52f
commit
e7f3734f43
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user