roll back is_initialized

This commit is contained in:
junbo 2018-07-20 09:53:46 +08:00
parent 40f6e67d83
commit 15c51a4ab1

View file

@ -50,7 +50,7 @@ def convert_str_to_bool(str: str) -> bool:
def is_initialized() -> bool:
return not os.path.exists(INIT_FILE)
return os.path.exists(INIT_FILE)
def finish_initialization():
@ -196,7 +196,7 @@ def run():
avd_name = '{device}_{version}'.format(device=device.replace(' ', '_').lower(), version=ANDROID_VERSION)
logger.info('AVD name: {avd}'.format(avd=avd_name))
is_first_run = is_initialized()
is_first_run = not is_initialized()
if is_first_run:
logger.info('Preparing emulator...')