diff options
-rw-r--r-- | lib/spack/spack/cmd/setup.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/spack/spack/cmd/setup.py b/lib/spack/spack/cmd/setup.py index c4448e1605..aa391b2b35 100644 --- a/lib/spack/spack/cmd/setup.py +++ b/lib/spack/spack/cmd/setup.py @@ -6,7 +6,6 @@ import argparse import copy import os -import string import sys import llnl.util.tty as tty @@ -85,7 +84,7 @@ env = dict(os.environ) env_vars = sorted(list(env.keys())) for name in env_vars: val = env[name] - if string.find(name, 'PATH') < 0: + if name.find('PATH') < 0: fout.write('env[%s] = %s\n' % (repr(name), repr(val))) else: if name == 'SPACK_TRANSITIVE_INCLUDE_PATH': @@ -95,7 +94,7 @@ env = dict(os.environ) fout.write( 'env[%s] = "%s".join(cmdlist("""\n' % (repr(name), sep)) - for part in string.split(val, sep): + for part in val.split(sep): fout.write(' %s\n' % part) fout.write('"""))\n') |