Able to get the directory where the package is located

Hello,

Currently, I need to access the directory where the package is located to run a .py file there. Is it possible to access somehow over the wrapper command or not and if yes how?

Is $__tool_directoty__ (Galaxy Tool XML File — Galaxy Project 24.1.dev0 documentation) what you are looking for?

No, I mean that I need access to the dir where all files of the package are located. This solved my problem for example python "\$(dirname "\$(dirname "\$(which amber.py)")")/lib/python3.11/site-packages/src/utils/convert_fasta_bins_to_biobox_format.py"

1 Like

Yeah, that would be the correct approach for that purpose.