From 2e6defa223c7a66cf8b23b64e250af3b3a09d48a Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Wed, 24 Apr 2024 15:14:34 +0200 Subject: [PATCH] Fix python syntax in ergocub multisheller scripts --- conda/multisheller/ergocub-software_activate.msh | 8 ++++---- conda/multisheller/ergocub-software_deactivate.msh | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/conda/multisheller/ergocub-software_activate.msh b/conda/multisheller/ergocub-software_activate.msh index 0d02b0844..f716205dc 100644 --- a/conda/multisheller/ergocub-software_activate.msh +++ b/conda/multisheller/ergocub-software_activate.msh @@ -11,17 +11,17 @@ if_(is_set("COMSPEC")).then_([ # For some reason setting two times the same variable inside the same if does not work in command prompt # As a workaround, we move each GAZEBO_MODEL_PATH and GZ_SIM_RESOURCE_PATH set to a separate if if_(is_set("COMSPEC")).then_([ - sys.list_append("GAZEBO_MODEL_PATH", path.join(env("CONDA_PREFIX"), "Library\\share\\ergoCub\\robots")) + sys.list_append("GAZEBO_MODEL_PATH", path.join(env("CONDA_PREFIX"), "Library\\share\\ergoCub\\robots")), sys.list_append("GZ_SIM_RESOURCE_PATH", path.join(env("CONDA_PREFIX"), "Library\\share\\ergoCub\\robots")) ]).else_([ - sys.list_append("GAZEBO_MODEL_PATH", path.join(env("CONDA_PREFIX"), "share/ergoCub/robots")) + sys.list_append("GAZEBO_MODEL_PATH", path.join(env("CONDA_PREFIX"), "share/ergoCub/robots")), sys.list_append("GZ_SIM_RESOURCE_PATH", path.join(env("CONDA_PREFIX"), "share/ergoCub/robots")) ]) if_(is_set("COMSPEC")).then_([ - sys.list_append("GAZEBO_MODEL_PATH", path.join(env("CONDA_PREFIX"), "Library\\share")) + sys.list_append("GAZEBO_MODEL_PATH", path.join(env("CONDA_PREFIX"), "Library\\share")), sys.list_append("GZ_SIM_RESOURCE_PATH", path.join(env("CONDA_PREFIX"), "Library\\share")) ]).else_([ - sys.list_append("GAZEBO_MODEL_PATH", path.join(env("CONDA_PREFIX"), "share")) + sys.list_append("GAZEBO_MODEL_PATH", path.join(env("CONDA_PREFIX"), "share")), sys.list_append("GZ_SIM_RESOURCE_PATH", path.join(env("CONDA_PREFIX"), "share")) ]) diff --git a/conda/multisheller/ergocub-software_deactivate.msh b/conda/multisheller/ergocub-software_deactivate.msh index 60a358f54..12fa88c95 100644 --- a/conda/multisheller/ergocub-software_deactivate.msh +++ b/conda/multisheller/ergocub-software_deactivate.msh @@ -11,17 +11,17 @@ if_(is_set("COMSPEC")).then_([ # For some reason setting two times the same variable inside the same if does not work in command prompt # As a workaround, we move each GAZEBO_MODEL_PATH and GZ_SIM_RESOURCE_PATH set to a separate if if_(is_set("COMSPEC")).then_([ - sys.list_remove("GAZEBO_MODEL_PATH", path.join(env("CONDA_PREFIX"), "Library\\share\\ergoCub\\robots")) + sys.list_remove("GAZEBO_MODEL_PATH", path.join(env("CONDA_PREFIX"), "Library\\share\\ergoCub\\robots")), sys.list_remove("GZ_SIM_RESOURCE_PATH", path.join(env("CONDA_PREFIX"), "Library\\share\\ergoCub\\robots")) ]).else_([ - sys.list_remove("GAZEBO_MODEL_PATH", path.join(env("CONDA_PREFIX"), "share/ergoCub/robots")) + sys.list_remove("GAZEBO_MODEL_PATH", path.join(env("CONDA_PREFIX"), "share/ergoCub/robots")), sys.list_remove("GZ_SIM_RESOURCE_PATH", path.join(env("CONDA_PREFIX"), "share/ergoCub/robots")) ]) if_(is_set("COMSPEC")).then_([ - sys.list_remove("GAZEBO_MODEL_PATH", path.join(env("CONDA_PREFIX"), "Library\\share")) + sys.list_remove("GAZEBO_MODEL_PATH", path.join(env("CONDA_PREFIX"), "Library\\share")), sys.list_remove("GZ_SIM_RESOURCE_PATH", path.join(env("CONDA_PREFIX"), "Library\\share")) ]).else_([ - sys.list_remove("GAZEBO_MODEL_PATH", path.join(env("CONDA_PREFIX"), "share")) + sys.list_remove("GAZEBO_MODEL_PATH", path.join(env("CONDA_PREFIX"), "share")), sys.list_remove("GZ_SIM_RESOURCE_PATH", path.join(env("CONDA_PREFIX"), "share")) ])