mirror of
https://github.com/budtmo/docker-android.git
synced 2026-07-29 19:00:34 +00:00
Add optional env to set avd name
This commit is contained in:
+1
-1
@@ -206,7 +206,7 @@ def run():
|
||||
custom_args=os.getenv('EMULATOR_ARGS', '')
|
||||
logger.info('Custom Args: {custom_args}'.format(custom_args=custom_args))
|
||||
|
||||
avd_name = '{device}_{version}'.format(device=device.replace(' ', '_').lower(), version=ANDROID_VERSION)
|
||||
avd_name = os.getenv('AVD_NAME', '{device}_{version}'.format(device=device.replace(' ', '_').lower(), version=ANDROID_VERSION))
|
||||
logger.info('AVD name: {avd}'.format(avd=avd_name))
|
||||
is_first_run = not is_initialized(device)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user