Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'commands/common.py')
-rw-r--r--commands/common.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/commands/common.py b/commands/common.py
index 62b53b5..c09da54 100644
--- a/commands/common.py
+++ b/commands/common.py
@@ -16,8 +16,10 @@ def setup(log_name=None, check_args={}):
"state_dir": os.path.join(base_dir, "state"),
"prefs_path": os.path.join(base_dir, "prefs"),
"logs_dir": os.path.join(base_dir, "logs"),
- "relocatable": "SUGAR_BUILDBOT" in os.environ,
- "log_name": log_name}
+ "relocatable": "SUGAR_BUILDBOT" in os.environ}
+
+ if log_name:
+ config_args["log_name"] = log_name
if not main.setup(config_args, check_args):
sys.exit(1)