Skip to content

Commit 4fe9cfd

Browse files
committed
determine colcon path on Windows
1 parent df76f5d commit 4fe9cfd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ros2_batch_job/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def run(args, build_function, blacklisted_package_names=None):
441441
if sys.platform != 'win32':
442442
colcon_script = os.path.join(venv_path, 'bin', 'colcon')
443443
else:
444-
colcon_script = 'c:\\python36\\Scripts\\colcon.exe'
444+
colcon_script = which('colcon')
445445
args.colcon_script = colcon_script
446446
# Show what pip has
447447
job.run(['"%s"' % job.python, '-m', 'pip', 'freeze'], shell=True)

0 commit comments

Comments
 (0)