in mozregression/config.py [0:0]
def _get_persist_dir(default):
print(
"You should configure a persist directory, where to put downloaded"
" build files to reuse them in future bisections."
)
print(
"I recommend using %s. Leave blank to use that default. If you"
" really don't want a persist dir type NONE, else you can"
" just define a path that you would like to use." % default
)
value = input("persist: ")
if value == "NONE":
return ""
elif value:
persist_dir = os.path.realpath(value)
else:
persist_dir = default
if persist_dir:
if not os.path.isdir(persist_dir):
os.makedirs(persist_dir)
return persist_dir