Closed kfuku52 closed 1 year ago
@Hego-CCTB Is it not writing to /opt/conda/envs/biotools/lib/python3.9/site-packages/amalgkit/config_dir/base/
but from the directory? If so, this is not a bug, but the message is confusing. Could you change it to better texts? Also, please remove try/except
in config.py
. They invite future bugs. For example, here, a file check should be done with e.g., os.path.exists()
but not with try
.
https://github.com/kfuku52/amalgkit/blob/057a4fcc8d55d1b16d381e95eff20ab65bee1533/amalgkit/config.py#L72-L80
Yeah, the message is not correct. There's a "from" missing at the very least. It copies from the amalgkit installation directory to the destination. I'll clear up the message and change try/except statements!
I will take care of it if you don't have time.
The message now says "Copying from ... to ...". Also removed the try/except statement, as it didn't seem to actually catch any exceptions in my testing. https://github.com/kfuku52/amalgkit/commit/fbd4722bce7c6358c5699d9a520b8fdf90eb65f5
Thanks!
@Hego-CCTB AMALGKIT shouldn't write files outside --out_dir but it tries to do so with the latest
amalgkit config
. I will fix it.