From db11e872aa3543d368045046c181da790ac69f5b Mon Sep 17 00:00:00 2001 From: Guilhem Saurel <guilhem.saurel@laas.fr> Date: Wed, 28 Aug 2019 12:50:05 +0200 Subject: [PATCH] display -> __main__ --- example_robot_data/CMakeLists.txt | 2 +- example_robot_data/{display.py => __main__.py} | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) rename example_robot_data/{display.py => __main__.py} (96%) mode change 100755 => 100644 diff --git a/example_robot_data/CMakeLists.txt b/example_robot_data/CMakeLists.txt index f24841f..224966f 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 79cd9f4..823baea --- 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 -- GitLab