From 155823f1994153fc4fc6092a2e638bb8276c1379 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 28 Sep 2023 11:01:28 -0400 Subject: [PATCH] Add shebang to the launch_parsers_on_nidm.py script and use it without prepending python in a workflow --- .github/workflows/parsers_test_on_nidmexamples.yml | 2 +- launch_parser_on_nidm.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 launch_parser_on_nidm.py diff --git a/.github/workflows/parsers_test_on_nidmexamples.yml b/.github/workflows/parsers_test_on_nidmexamples.yml index a4da1b24d..3c924f2aa 100644 --- a/.github/workflows/parsers_test_on_nidmexamples.yml +++ b/.github/workflows/parsers_test_on_nidmexamples.yml @@ -80,7 +80,7 @@ jobs: wget https://raw.githubusercontent.com/afni/apaper_highlight_narps/main/scripts_suppl_proc_teams/do_04_make_imgs_A.tcsh -O nidmresults-examples/narps_do_04_make_imgs_A.tcsh wget https://raw.githubusercontent.com/afni/apaper_highlight_narps/main/scripts_suppl_proc_teams/do_02_pc_with_sign0.tcsh -O nidmresults-examples/narps_do_02_pc_with_sign0.tcsh - python launch_parser_on_nidm.py --input_dir nidmresults-examples --output_dir examples/from_parsers + ./launch_parser_on_nidm.py --input_dir nidmresults-examples --output_dir examples/from_parsers - name: push on the repo the dir "examples/from_parsers" run: | diff --git a/launch_parser_on_nidm.py b/launch_parser_on_nidm.py old mode 100644 new mode 100755 index 99540d500..5981f889f --- a/launch_parser_on_nidm.py +++ b/launch_parser_on_nidm.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python + import argparse import os import random