Commit 7ae4dd01 authored by Cyril Guilloud's avatar Cyril Guilloud
Browse files

if _setup returns None, "error(s) in setup" is printed at startup.

parent c11f0b3a
Pipeline #46030 passed with stages
in 146 minutes and 49 seconds
......@@ -801,8 +801,14 @@ class Session:
env_dict["user_script_run"] = self.user_script_run
def _setup(self, env_dict, nested=False):
"""
Load an execute setup file.
Called by _do_setup() which is called by setup().
Must return True in case of success.
"""
if self.setup_file is None:
return
return True
print("%s: Executing setup file..." % self.name)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment