From e8cf8ee65d0f278e81b5c610b33593fd5be72405 Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Wed, 06 Feb 2013 17:04:52 +0000 Subject: Pass the profile path to b2g --- diff --git a/src/jarabe/b2g.py b/src/jarabe/b2g.py index 4b1492f..8fc4fea 100644 --- a/src/jarabe/b2g.py +++ b/src/jarabe/b2g.py @@ -13,13 +13,15 @@ def _ensure_profile(): if not os.path.exists(b2g_profile_path): shutil.copytree(sugar_html_path, b2g_profile_path) + return b2g_profile_path + def start(): - _ensure_profile() + profile_path = _ensure_profile() b2g_bin = os.path.join(os.environ["B2G_PATH"], "b2g") global _b2g_process - _b2g_process = subprocess.Popen([b2g_bin]) + _b2g_process = subprocess.Popen([b2g_bin, "-profile", profile_path]) def stop(): global _b2g_process -- cgit v0.9.1