diff options
author | Axel Huebl <axel.huebl@plasma.ninja> | 2020-04-24 13:24:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-24 13:24:52 -0700 |
commit | 5828a8f7e6472e01f542f339fc44b7ebfc3edfd9 (patch) | |
tree | b4d1e364bc7ce3ad629d91fe64e04ce3326c13e5 /lib | |
parent | 051d0d935aeb96f01497356c515877faa8cc8484 (diff) | |
download | spack-5828a8f7e6472e01f542f339fc44b7ebfc3edfd9.tar.gz spack-5828a8f7e6472e01f542f339fc44b7ebfc3edfd9.tar.bz2 spack-5828a8f7e6472e01f542f339fc44b7ebfc3edfd9.tar.xz spack-5828a8f7e6472e01f542f339fc44b7ebfc3edfd9.zip |
spack env: activate note (#16279)
print a note on how to activate a newly created environment
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/cmd/env.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/spack/spack/cmd/env.py b/lib/spack/spack/cmd/env.py index a8bc1e5bbe..43c125e8f2 100644 --- a/lib/spack/spack/cmd/env.py +++ b/lib/spack/spack/cmd/env.py @@ -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 |