commit/galaxy-central: jgoecks: Add interpreter and absolute path logic to version tag. Thanks to Björn Grüning.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/02fe49c3d251/ changeset: 02fe49c3d251 user: jgoecks date: 2012-10-08 20:22:44 summary: Add interpreter and absolute path logic to version tag. Thanks to Björn Grüning. affected #: 1 file diff -r 724aaf15bcbe4989450af00c83ea8538c6b2f051 -r 02fe49c3d251bd30114dcd616336b73b2e8d1ab2 lib/galaxy/tools/__init__.py --- a/lib/galaxy/tools/__init__.py +++ b/lib/galaxy/tools/__init__.py @@ -960,6 +960,12 @@ version_cmd = root.find("version_command") if version_cmd is not None: self.version_string_cmd = version_cmd.text + version_cmd_interpreter = version_cmd.get( "interpreter", None ) + if version_cmd_interpreter: + executable = self.version_string_cmd.split()[0] + abs_executable = os.path.abspath(os.path.join(self.tool_dir, executable)) + command_line = self.version_string_cmd.replace(executable, abs_executable, 1) + self.version_string_cmd = self.interpreter + " " + command_line # Parallelism for tasks, read from tool config. parallelism = root.find("parallelism") if parallelism is not None and parallelism.get("method"): Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket