Skip to content

Commit

Permalink
make sure that install space exists when creating env.sh file for cma…
Browse files Browse the repository at this point in the history
…ke projects (fix #340)
  • Loading branch information
dirk-thomas committed Feb 15, 2013
1 parent c302ce1 commit c3e0afd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/catkin/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@ def build_cmake_package(
subs['pkgcfg_path'] = os.path.join(install_target, 'lib', 'pkgconfig')
subs['pkgcfg_path'] += ":"
subs['path'] = os.path.join(install_target, 'bin') + ":"
if not os.path.exists(install_target):
os.mkdir(install_target)
with open(new_env_path, 'w+') as file_handle:
file_handle.write("""\
#!/bin/sh
Expand Down

0 comments on commit c3e0afd

Please sign in to comment.