diff options
Diffstat (limited to 'mojo')
-rwxr-xr-x | mojo/tools/android_mojo_shell.py | 3 | ||||
-rw-r--r-- | mojo/tools/mopy/config.py | 8 | ||||
-rw-r--r-- | mojo/tools/mopy/paths.py | 2 |
3 files changed, 3 insertions, 10 deletions
diff --git a/mojo/tools/android_mojo_shell.py b/mojo/tools/android_mojo_shell.py index 020fe1f..ca86672 100755 --- a/mojo/tools/android_mojo_shell.py +++ b/mojo/tools/android_mojo_shell.py @@ -31,8 +31,7 @@ def main(): config = Config(target_os=Config.OS_ANDROID, target_cpu=launcher_args.target_cpu, - is_debug=launcher_args.debug, - apk_name="MojoRunner.apk") + is_debug=launcher_args.debug) paths = Paths(config) shell = AndroidShell(paths.target_mojo_shell_path, paths.build_dir, paths.adb_path, launcher_args.target_device) diff --git a/mojo/tools/mopy/config.py b/mojo/tools/mopy/config.py index ba43bd0..796a328 100644 --- a/mojo/tools/mopy/config.py +++ b/mojo/tools/mopy/config.py @@ -39,7 +39,7 @@ class Config(object): def __init__(self, target_os=None, target_cpu=None, is_debug=True, is_clang=None, sanitizer=None, dcheck_always_on=False, - apk_name="MojoRunner.apk", **kwargs): + **kwargs): """Constructs a Config with key-value pairs specified via keyword arguments. If target_os is not specified, it will be set to the host OS.""" @@ -68,7 +68,6 @@ class Config(object): self.values["is_clang"] = is_clang self.values["sanitizer"] = sanitizer self.values["dcheck_always_on"] = dcheck_always_on - self.values["apk_name"] = apk_name self.values.update(kwargs) @@ -118,11 +117,6 @@ class Config(object): return self.values["dcheck_always_on"] @property - def apk_name(self): - """Name of the APK file to run""" - return self.values["apk_name"] - - @property def is_clang(self): """Should use clang?""" return self.values["is_clang"] diff --git a/mojo/tools/mopy/paths.py b/mojo/tools/mopy/paths.py index 751629a..508305c 100644 --- a/mojo/tools/mopy/paths.py +++ b/mojo/tools/mopy/paths.py @@ -36,7 +36,7 @@ class Paths(object): if config and config.target_os == Config.OS_ANDROID: self.target_mojo_shell_path = os.path.join(self.build_dir, "apks", - config.apk_name) + "MojoRunner.apk") else: self.target_mojo_shell_path = self.mojo_shell_path else: |