Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-12-15 20:22:01 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-12-15 20:22:01 (GMT)
commitc26bdad106685cb56186e4c31482479d39917180 (patch)
treec376b250385cdff8b6477ceddae641e97590ffe2 /commands
parentc74570b8e0a42bda292e398c2bb7233044b37a7a (diff)
Minor refactorings
Diffstat (limited to 'commands')
-rw-r--r--commands/common.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/commands/common.py b/commands/common.py
index 6b961bd..542a1f6 100644
--- a/commands/common.py
+++ b/commands/common.py
@@ -9,19 +9,14 @@ from devbot import config
from devbot import command
def setup():
- relocatable = "SUGAR_BUILDBOT" in os.environ
- logs_dir = os.path.join(base_dir, "logs")
- install_dir = os.path.join(base_dir, "install")
- tools_dir = os.path.join(base_dir, "tools")
-
config.setup(config_dir=os.path.join(base_dir, "config"),
- install_dir=install_dir,
+ install_dir=os.path.join(base_dir, "install"),
source_dir=os.path.join(base_dir, "source"),
build_dir=os.path.join(base_dir, "build"),
state_dir=os.path.join(base_dir, "state"),
prefs_path=os.path.join(base_dir, "prefs"),
- logs_dir=logs_dir,
- relocatable=relocatable)
+ logs_dir=os.path.join(base_dir, "logs"),
+ relocatable="SUGAR_BUILDBOT" in os.environ)
dep_files = ["system",
"sugar-build",
@@ -38,4 +33,5 @@ def setup():
config.set_package_files(package_files)
+ tools_dir = os.path.join(base_dir, "tools")
command.set_logger(os.path.join(tools_dir, "log-command"))