Skip to content

Commit

Permalink
Fixup CMake and local directory cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbovbel committed Dec 1, 2017
1 parent 60437fa commit 21bd7dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions catkin_virtualenv/cmake/build_venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ def delete_bytecode(directory):
# Remove all .py[co] files since they embed absolute paths
delete_bytecode(deploy.package_dir)

if not args.python3:
local_dir = os.path.join(deploy.package_dir, 'local')
if os.path.exists(local_dir):
# Remove local folder
shutil.rmtree(os.path.join(deploy.package_dir, 'local'))
shutil.rmtree(local_dir)

sys.exit(0)
2 changes: 1 addition & 1 deletion catkin_virtualenv/cmake/catkin_generate_virtualenv.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,6 @@ function(catkin_generate_virtualenv)
# <https://github.com/ros/catkin/blob/kinetic-devel/cmake/test/nosetests.cmake#L86>
message(STATUS "Using virtualenv to run Python nosetests: ${nosetests}")
set(NOSETESTS ${nosetests} PARENT_SCOPE)
endif()
endif()

endfunction()

0 comments on commit 21bd7dc

Please sign in to comment.