9q fix#12 ddt db search order
This commit is contained in:
parent
f94f17cd73
commit
b7abbd699c
@ -50,16 +50,16 @@ def find_DBs():
|
|||||||
return
|
return
|
||||||
|
|
||||||
for ddt_dir in db_dir_list:
|
for ddt_dir in db_dir_list:
|
||||||
if os.path.exists(os.path.join(ddt_dir, 'ecus')):
|
|
||||||
mod_globals.ddt_arc = ""
|
|
||||||
mod_globals.ddtroot = ddt_dir
|
|
||||||
ddt_found = True
|
|
||||||
break
|
|
||||||
if os.path.exists(os.path.join(ddt_dir, 'DDT2000data', 'ecus')):
|
if os.path.exists(os.path.join(ddt_dir, 'DDT2000data', 'ecus')):
|
||||||
mod_globals.ddt_arc = ""
|
mod_globals.ddt_arc = ""
|
||||||
mod_globals.ddtroot = os.path.join(ddt_dir, 'DDT2000data')
|
mod_globals.ddtroot = os.path.join(ddt_dir, 'DDT2000data')
|
||||||
ddt_found = True
|
ddt_found = True
|
||||||
break
|
break
|
||||||
|
if os.path.exists(os.path.join(ddt_dir, 'ecus')):
|
||||||
|
mod_globals.ddt_arc = ""
|
||||||
|
mod_globals.ddtroot = ddt_dir
|
||||||
|
ddt_found = True
|
||||||
|
break
|
||||||
arh_list = sorted(glob.glob(os.path.join(ddt_dir, 'DDT2000data*.zip')), reverse=True)
|
arh_list = sorted(glob.glob(os.path.join(ddt_dir, 'DDT2000data*.zip')), reverse=True)
|
||||||
if len(arh_list):
|
if len(arh_list):
|
||||||
mod_globals.ddt_arc = zipfile.ZipFile(arh_list[0])
|
mod_globals.ddt_arc = zipfile.ZipFile(arh_list[0])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user