Mentions légales du service

Skip to content
Snippets Groups Projects
Verified Commit 7174572e authored by SIMONIN Matthieu's avatar SIMONIN Matthieu
Browse files

fix a regression on the shell

parent 351d48ea
No related branches found
No related tags found
No related merge requests found
Pipeline #120187 passed
......@@ -7,7 +7,7 @@ import IPython
CONF_PATH = os.path.join(os.environ.get("HOME"), ".python-grid5000.yaml")
motd = (
MOTD = (
r"""
__ __
____ __ __/ /_/ /_ ____ ____
......@@ -22,12 +22,12 @@ motd = (
* Configuration loaded from %s
* A new client (variable gk) has been created for the user %s
* Start exploring the API through the gk variable
# Example: Get all available sites
$) gk.sites.list()
"""
% CONF_PATH
)
......@@ -35,8 +35,8 @@ def main():
path = pathlib.Path(CONF_PATH)
if not path.exists():
print("Configuratio file %s is missing" % CONF_PATH)
print("Configuration file %s is missing" % CONF_PATH)
return
_ = Grid5000.from_yaml(CONF_PATH)
gk = Grid5000.from_yaml(CONF_PATH)
motd = MOTD % (CONF_PATH, gk.username)
IPython.embed(header=motd)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment