cfg.LOCAL.workdir = os.path.abspath(osJoin(cfg.VARS.salometoolsway, ".."))
if cfg.LOCAL.log_dir == "default":
cfg.LOCAL.log_dir = os.path.abspath(osJoin(cfg.VARS.salometoolsway, "..", "LOGS"))
-
+ if cfg.LOCAL.tmp_dir == "default":
+ cfg.LOCAL.tmp_dir = os.path.abspath(osJoin(cfg.VARS.salometoolsway, "..", "TMP"))
if cfg.LOCAL.archive_dir == "default":
cfg.LOCAL.archive_dir = os.path.abspath( osJoin(cfg.VARS.salometoolsway, "..", "ARCHIVES"))
_('Optional: The tag of SAT (only informative)'))
parser.add_option('l', 'log_dir', 'string', 'log_dir',
_('Optional: The directory where to put all the logs of SAT'))
+parser.add_option('', 'tmp_dir', 'string', 'tmp_dir',
+ _('Optional: The temporary directory used by SAT'))
def set_local_value(config, key, value, logger):
""" Edit the site.pyconf file and change a value.
("workdir", config.LOCAL.workdir),
("log_dir", config.LOCAL.log_dir),
("archive_dir", config.LOCAL.archive_dir),
+ ("tmp_dir", config.LOCAL.tmp_dir),
("VCS", config.LOCAL.VCS),
("tag", config.LOCAL.tag),
("projects", config.PROJECTS.project_file_paths)]
for opt in [("base" , options.base),
("workdir", options.workdir),
("log_dir", options.log_dir),
+ ("tmp_dir", options.tmp_dir),
("archive_dir", options.archive_dir)]:
key, value = opt
if value:
workdir : 'default'
log_dir : 'default'
archive_dir : 'default'
+ tmp_dir : 'default'
VCS : None
tag : None
}
local_cfg.LOCAL["workdir"] = "default"
local_cfg.LOCAL["log_dir"] = "default"
local_cfg.LOCAL["archive_dir"] = "default"
+ local_cfg.LOCAL["tmp_dir"] = "default"
local_cfg.LOCAL["VCS"] = "None"
local_cfg.LOCAL["tag"] = src.get_salometool_version(config)