@@ -49,9 +49,11 @@ def run(self):
4949 # Convert input to absolute path
5050 input_abs = abspath (self .args .input )
5151
52- # Copy pipeline config template inside the input directory
53- # (generate_sulcal_regions.py always looks for it at {path_dataset}/pipeline_loop_2mm.json)
54- config_file_path : str = join (input_abs , "pipeline_loop_2mm.json" )
52+ # Copy pipeline config template into the output (derivatives) directory.
53+ # generate_sulcal_regions.py reads it from {path_dataset}/pipeline_loop_2mm.json,
54+ # and we pass output as -d so the config is never inside the subjects directory
55+ # (which would cause generate_skeletons.py to list it as a subject).
56+ config_file_path : str = join (abspath (self .args .output ), "pipeline_loop_2mm.json" )
5557 if not self .validate_paths ([config_file_path ]):
5658 source_config = abspath (join (
5759 dirname (__file__ ), '..' , 'pipeline_loop_2mm.json'
@@ -104,7 +106,7 @@ def run(self):
104106 cmd = [
105107 sys .executable ,
106108 script_path ,
107- "-d" , input_abs ,
109+ "-d" , abspath ( self . args . output ) ,
108110 "--path_to_graph" , self .args .path_to_graph ,
109111 "--path_sk_with_hull" , self .args .path_sk_with_hull ,
110112 "--njobs" , str (self .args .njobs )
0 commit comments