`autosubmit configure` not handling paths that end with slash
Testing autosubmit configure
inside a container, I found that this command:
RUN autosubmit configure \
-db "${AUTOSUBMIT_ROOT_DIR}/database/" \
-dbf autosubmit.db \
-lr "${AUTOSUBMIT_ROOT_DIR}/experiments/" && \
autosubmit install
where I have
ARG AUTOSUBMIT_ROOT_DIR=/app/autosubmit/
results in the following .autosubmitrc
:
[database]
path = /app/autosubmit//database/
filename = autosubmit.db
[local]
path = /app/autosubmit//experiments/
[globallogs]
path = /app/autosubmit//experiments/logs
[structures]
path = /app/autosubmit//experiments/metadata/structures
[historicdb]
path = /app/autosubmit//experiments/metadata/data
[historiclog]
path = /app/autosubmit//experiments/metadata/logs
[autosubmitapi]
url = http://192.168.11.91:8081 # Replace me?
I believe this is harmless, but it would still be safer to handle the slashes in Python and make sure we use something like .join(paths)
and let Python's stdlib functions handle that.
I'm running this in the Docker image:
RUN pip install autosubmit==4.0.84