Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2013-02-06 17:04:52 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2013-02-06 17:04:52 (GMT)
commite8cf8ee65d0f278e81b5c610b33593fd5be72405 (patch)
tree1842cb0e325d41234beac67b3fc1101942ee37e4
parent03b0cd719417d5e526613a6bb6ec36128156855c (diff)
Pass the profile path to b2ghtml2
-rw-r--r--src/jarabe/b2g.py6
1 files changed, 4 insertions, 2 deletions
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