diff --git a/pyren/mod_db_manager.py b/pyren/mod_db_manager.py index 2bd65f9..263fdaf 100644 --- a/pyren/mod_db_manager.py +++ b/pyren/mod_db_manager.py @@ -42,7 +42,7 @@ def find_DBs(): clip_found = True break - if os.name == 'android': + if mod_globals.os == 'android': if not clip_found: print "ERROR: CLIP DB not found" exit() @@ -71,6 +71,8 @@ def find_DBs(): print 'CLIP DB :',mod_globals.cliproot if ddt_found: print 'DDT DB :',mod_globals.ddtroot + if mod_globals.os != 'android': + mod_globals.opt_ddt = True #check cache version verfilename = "./cache/version09q.txt" diff --git a/pyren/pyren.py b/pyren/pyren.py index 6a6ceb9..9e2e90a 100755 --- a/pyren/pyren.py +++ b/pyren/pyren.py @@ -291,10 +291,6 @@ def main(): mod_ddt_utils.searchddtroot() - #check if DDT present - if os.path.exists(os.path.join(mod_globals.ddtroot, '/ecus')) and mod_globals.os != 'android': - mod_globals.opt_ddt = True - while( 1 ): clearScreen() choosen_ecu = se.chooseECU( mod_globals.opt_ecuid ) # choose ECU among detected