Executable symlink not updated when overwrite=True, causes issue if binaryrelpath was wrong upon creation of the run dir
@jon.citrin @Karel-van-de-Plassche, in QuaLiKiz-pythontools/qualikiz_tools/qualikiz_io/qualikizrun.py, line 190-195:
# Create link to binary
binarybasepath = self.binaryrelpath.name
try:
(rundir / binarybasepath).symlink_to(self.binaryrelpath)
except FileExistsError:
pass
the exception pass can cause issues if the run dir is being rerun but the binaryrelpath has been updated or was wrong at creation of the run dir (user error). Would adding an if statement to check if overwrite=True with something like os.replace() in the exception solve this?