diff options
author | Steven Knight <knight@baldmt.com> | 2004-06-01 04:41:58 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-06-01 04:41:58 (GMT) |
commit | c642fca37d45da3f01c892b1518ce42ef8abbb6e (patch) | |
tree | 6483b18f10e11a46357d385fae5d023c25ce58b8 /src/engine/SCons/Tool/sunc++.py | |
parent | 78b110985d41c80a1803e95f3f9fe7280a0c1cb1 (diff) | |
download | SCons-c642fca37d45da3f01c892b1518ce42ef8abbb6e.zip SCons-c642fca37d45da3f01c892b1518ce42ef8abbb6e.tar.gz SCons-c642fca37d45da3f01c892b1518ce42ef8abbb6e.tar.bz2 |
Remove dead imports and other things found by PyChecker.
Diffstat (limited to 'src/engine/SCons/Tool/sunc++.py')
-rw-r--r-- | src/engine/SCons/Tool/sunc++.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/engine/SCons/Tool/sunc++.py b/src/engine/SCons/Tool/sunc++.py index 230c92b..673949b 100644 --- a/src/engine/SCons/Tool/sunc++.py +++ b/src/engine/SCons/Tool/sunc++.py @@ -10,20 +10,15 @@ selection method. __revision__ = "" import os.path -import string cplusplus = __import__('c++', globals(), locals(), []) # use the package installer tool lslpp to figure out where cppc and what # version of it is installed def get_cppc(env): - cppcPath = None + cppcPath = env.get('CXX', None) cppcVersion = None - try: - cppc = env['CXX'] - except KeyError: - cppc = 'cppc' for package in ['SPROcpl']: cmd = "pkginfo -l " + package + " 2>/dev/null | grep '^ *VERSION:'" line = os.popen(cmd).readline() |