1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import os
import sys
base_dir = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
sys.path.append(base_dir)
from devbot import main
def setup(log_name=None, check_args={}):
config_args = {"config_dir": os.path.join(base_dir, "config"),
"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": os.path.join(base_dir, "logs"),
"relocatable": "SUGAR_BUILDBOT" in os.environ,
"log_name": log_name}
if not main.setup(config_args, check_args):
sys.exit(1)
|