From 7e414c7c7c92868dec2c8cae3524d498c6e8f934 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel <guilhem.saurel@laas.fr> Date: Mon, 11 Apr 2022 15:24:54 +0200 Subject: [PATCH] format --- python/example_robot_data/robots_loader.py | 23 ++++++++++------------ 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/python/example_robot_data/robots_loader.py b/python/example_robot_data/robots_loader.py index 5eda2af..a4d7b62 100644 --- a/python/example_robot_data/robots_loader.py +++ b/python/example_robot_data/robots_loader.py @@ -11,23 +11,20 @@ pin.switchToNumpyArray() def getModelPath(subpath, printmsg=False): source = dirname(dirname(dirname(__file__))) # top level source directory paths = [ - join( - dirname(dirname(dirname(source))), "robots" - ), # function called from "make release" in build/ dir - join( - dirname(source), "robots" - ), # function called from a build/ dir inside top level source - join(source, "robots"), # function called from top level source dir + # function called from "make release" in build/ dir + join(dirname(dirname(dirname(source))), "robots"), + # function called from a build/ dir inside top level source + join(dirname(source), "robots"), + # function called from top level source dir + join(source, "robots"), ] try: from .path import EXAMPLE_ROBOT_DATA_MODEL_DIR, EXAMPLE_ROBOT_DATA_SOURCE_DIR - paths.append( - EXAMPLE_ROBOT_DATA_MODEL_DIR - ) # function called from installed project - paths.append( - EXAMPLE_ROBOT_DATA_SOURCE_DIR - ) # function called from off-tree build dir + # function called from installed project + paths.append(EXAMPLE_ROBOT_DATA_MODEL_DIR) + # function called from off-tree build dir + paths.append(EXAMPLE_ROBOT_DATA_SOURCE_DIR) except ImportError: pass paths += [join(p, "../../../share/example-robot-data/robots") for p in sys.path] -- GitLab