def __extract_csv(self, mdb): yugioh_env.execmd("mdb-export -H \"%s\" YGODATA > %s" % (mdb, self.__CSV_DATA)) yugioh_env.execmd("mdb-export -H \"%s\" YGOEFFECT > %s" % (mdb, self.__CSV_EFFECT))
def get_version(self): if os.path.exists(self.__DATABASE_NAME): os.remove(self.__DATABASE_NAME) yugioh_env.execmd("adb pull /sdcard/.yugioh/yugioh.db ./") if os.path.exists(self.__DATABASE_NAME): print("current version: %s" % (self.__get_version()))