diff package_output.py @ 11:168b0a92edd3 draft

planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/segalign commit 53e28d4dd9ab352c94f91f952ac855b89197f032
author richard-burhans
date Fri, 12 Jul 2024 23:00:03 +0000
parents 08e987868f0f
children 4966e095e3c3
line wrap: on
line diff
--- a/package_output.py	Thu Jul 11 15:50:48 2024 +0000
+++ b/package_output.py	Fri Jul 12 23:00:03 2024 +0000
@@ -270,8 +270,11 @@
 
 
 def main() -> None:
-    our_dirname: str = os.path.dirname(os.path.realpath(__file__))
-    lastz_command_config_file: str = os.path.join(our_dirname, "lastz-cmd.ini")
+    parser = argparse.ArgumentParser()
+    parser.add_argument("--tool_directory", type=str, required=True, help="tool directory")
+    args = parser.parse_args()
+
+    lastz_command_config_file: str = os.path.join(args.tool_directory, "lastz-cmd.ini")
 
     config: configparser.ConfigParser = configparser.ConfigParser()
     config.read(lastz_command_config_file)