diff --git a/example_robot_data/CMakeLists.txt b/example_robot_data/CMakeLists.txt index f24841fd46142210b46f97bfd2f607115d47e40b..224966f348610bd0b0b07eea2697362cebab5e9c 100644 --- a/example_robot_data/CMakeLists.txt +++ b/example_robot_data/CMakeLists.txt @@ -1,6 +1,6 @@ SET(${PROJECT_NAME}_PYTHON_FILES robots_loader.py - display.py + __main__.py __init__.py ) diff --git a/example_robot_data/display.py b/example_robot_data/__main__.py old mode 100755 new mode 100644 similarity index 96% rename from example_robot_data/display.py rename to example_robot_data/__main__.py index 79cd9f41f218e470e1bff0f5855a700e8b905f04..823baeabb74b57a7734857c7cc9c4edbf3f4ee69 --- a/example_robot_data/display.py +++ b/example_robot_data/__main__.py @@ -1,8 +1,6 @@ -#!/usr/bin/env python - import sys -import robots_loader +from . import robots_loader DISPLAY_HYQ = 'hyq' in sys.argv DISPLAY_TALOS = 'talos' in sys.argv