spack env: activate note (#16279)
print a note on how to activate a newly created environment
This commit is contained in:
parent
051d0d935a
commit
5828a8f7e6
@ -208,10 +208,14 @@ def _env_create(name_or_path, init_file=None, dir=False, with_view=None):
|
||||
env = ev.Environment(name_or_path, init_file, with_view)
|
||||
env.write()
|
||||
tty.msg("Created environment in %s" % env.path)
|
||||
tty.msg("You can activate this environment with:")
|
||||
tty.msg(" spack env activate %s" % env.path)
|
||||
else:
|
||||
env = ev.create(name_or_path, init_file, with_view)
|
||||
env.write()
|
||||
tty.msg("Created environment '%s' in %s" % (name_or_path, env.path))
|
||||
tty.msg("You can activate this environment with:")
|
||||
tty.msg(" spack env activate %s" % (name_or_path))
|
||||
return env
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user