fix test when using different Python version (#1028)
Dirk Thomas authored 4 years ago
GitHub committed 4 years ago
144 | 144 | cmi = os.path.join(os.path.dirname(__file__), '..', '..', 'bin', 'catkin_make_isolated') |
145 | 145 | environ['CMAKE_PREFIX_PATH'] = os.path.join(ws_dir, 'install') |
146 | 146 | environ['PWD'] = src_dir |
147 | subprocess.check_output(' '.join([cmi, '-C', '..']), cwd=src_dir, env=environ, shell=True) | |
147 | subprocess.check_output(' '.join([sys.executable, cmi, '-C', '..']), cwd=src_dir, env=environ, shell=True) | |
148 | 148 | except Exception as e: |
149 | 149 | error_msg = str(e) |
150 | 150 | finally: |