diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2013-04-08 19:06:34 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2013-04-08 19:06:34 -0700 |
commit | 39b242a134d481368429e4ab14f9ce847495e6d0 (patch) | |
tree | 87ca426db9296f94db0a7331ee197966e1d52ac1 /bin | |
parent | e1551de976355bdd7836c6e38a045df9ec91f0d0 (diff) | |
parent | 422d291b111464599618a538ee1ca3334c698ab8 (diff) | |
download | spack-39b242a134d481368429e4ab14f9ce847495e6d0.tar.gz spack-39b242a134d481368429e4ab14f9ce847495e6d0.tar.bz2 spack-39b242a134d481368429e4ab14f9ce847495e6d0.tar.xz spack-39b242a134d481368429e4ab14f9ce847495e6d0.zip |
Merge pull request #1 from feature-platforms to master
* commit '422d291b111464599618a538ee1ca3334c698ab8':
This adds support for multi-platform methods.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/spack | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -15,6 +15,7 @@ sys.path.insert(0, SPACK_LIB_PATH) # clean up the scope and start using spack package instead. del SPACK_FILE, SPACK_PREFIX, SPACK_LIB_PATH import spack +import spack.tty as tty # Command parsing parser = argparse.ArgumentParser( @@ -43,4 +44,7 @@ spack.debug = args.debug # Try to load the particular command asked for and run it command = spack.cmd.get_command(args.command) -command(parser, args) +try: + command(parser, args) +except KeyboardInterrupt: + tty.die("Got a keyboard interrupt from the user.") |