File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -99,17 +99,14 @@ def set_dependency_path(args):
9999 f .write ("" .join (x for x in lines ))
100100
101101
102- def find_meta_dirs (paths , exclude_dirs = None ):
102+ def find_meta_dirs (paths , exclude_dirs = () ):
103103 """
104104 Return a set of rose-metadata directories that can be found in the apps and
105105 core sources. Done by seaching for rose-meta.conf files. Records the parent
106106 directory of the current one, as rose-meta.conf files end up in HEAD/vnX.Y
107107 directories.
108108 """
109109
110- if exclude_dirs is None :
111- exclude_dirs = []
112-
113110 dirs = set ()
114111 for path in paths :
115112 print ("[INFO] Finding rose metadata directories in" , path )
@@ -409,13 +406,13 @@ def main():
409406 set_dependency_path (args )
410407
411408 # Find all metadata directories, excluing jules shared and lfric inputs as these have metadata but no macros.
412- exclude_dirs = [
409+ exclude_dirs = (
413410 ".svn" ,
414411 "rose-stem" ,
415412 "integration-test" ,
416413 "lfric-jules-shared" ,
417414 "lfricinputs" ,
418- ]
415+ )
419416 meta_dirs = find_meta_dirs ([args .apps , args .core ], exclude_dirs )
420417
421418 # Find JULES shared metadata directories and combine with all other metadirs for where they are handled differently
You can’t perform that action at this time.
0 commit comments