From eda4ccb78198d5e572ea93314d87a8ea924cc094 Mon Sep 17 00:00:00 2001 From: "Jeff \"Huey\" Huelsbeck" Date: Thu, 17 Jul 2014 16:59:45 -0400 Subject: [PATCH] Fix for Genymotion Broke Genymotion on the last push, it is now fixed --- Titanium.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Titanium.py b/Titanium.py index 5fddc33..ae2ded0 100644 --- a/Titanium.py +++ b/Titanium.py @@ -59,7 +59,7 @@ def select_project(self, select): select = select - 1 if select == -1: - self.window.run_command("exec", {"cmd": ' '.join(titaniumMostRecent), "shell": True}) + self.window.run_command("exec", titaniumMostRecent) else: self.project_folder = folders[select] self.project_sdk = self.get_project_sdk_version() @@ -82,7 +82,7 @@ def select_platform(self, select): self.platform = self.platforms[select] if self.platform == "most recent configuration": - self.window.run_command("exec", {"cmd": ' '.join(titaniumMostRecent), "shell": True}) + self.window.run_command("exec", titaniumMostRecent) elif self.platform == "ios": self.targets = ["simulator", "device", "dist-appstore", "dist-adhoc"] self.show_quick_panel(self.targets, self.select_ios_target) @@ -107,24 +107,25 @@ def get_project_sdk_version(self): def run_titanium(self, options=[]): cmd = [self.cli, "build", "--sdk", self.project_sdk, "--project-dir", self.project_folder, "--no-colors", "--platform", self.platform, "--log-level", self.loggingLevel] - cmd.extend(options) + execCMD = {"cmd": ' '.join(cmd), "shell": True} # save most recent command global titaniumMostRecent - titaniumMostRecent = cmd + titaniumMostRecent = execCMD - self.window.run_command("exec", {"cmd": ' '.join(cmd), "shell": True}) + self.window.run_command("exec", execCMD) def run_genymotion(self, options=[]): cmd = [self.cli, "build", "--sdk", self.project_sdk, "--project-dir", self.project_folder, "--no-colors", "--platform", self.platform, "--log-level", self.loggingLevel] cmd.extend(options) + execCMD = {"cmd": cmd} # save most recent command global titaniumMostRecent - titaniumMostRecent = cmd + titaniumMostRecent = execCMD - self.window.run_command("exec", {"cmd": ' '.join(cmd), "shell": True}) + self.window.run_command("exec", execCMD) #-------------------------------------------------------------- # MOBILE WEB