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
|
return res
|
||||||
|
|
||||||
def get_file_from_clip( filename ):
|
def get_file_from_clip( filename ):
|
||||||
if (filename.lower().endswith('bqm') \
|
if (filename.lower().endswith('bqm')
|
||||||
or '/sg' in filename.lower()) and \
|
or '/sg' in filename.lower()):
|
||||||
mod_globals.os != 'android':
|
|
||||||
mode = 'rb'
|
mode = 'rb'
|
||||||
else:
|
else:
|
||||||
mode = 'r'
|
mode = 'r'
|
||||||
|
|
||||||
|
if (mod_globals.os == 'android'
|
||||||
|
or mod_globals.clip_arc != ''):
|
||||||
|
mode = 'r'
|
||||||
|
|
||||||
if mod_globals.clip_arc=='':
|
if mod_globals.clip_arc=='':
|
||||||
return open(os.path.join(mod_globals.cliproot, filename), mode)
|
return open(os.path.join(mod_globals.cliproot, filename), mode)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user