Skip to content
Snippets Groups Projects
Commit 491dabeb authored by Frisinghelli Daniel's avatar Frisinghelli Daniel
Browse files

Match exact variable name.

parent bb9a2ff3
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,7 @@ if __name__ == '__main__': ...@@ -57,7 +57,7 @@ if __name__ == '__main__':
# extract files of the specified variable # extract files of the specified variable
source = [file for file in source.keys() if source = [file for file in source.keys() if
file.stem.startswith(args.variable)] file.stem.split('_')[0] == args.variable]
LOGGER.info('Files matching "{}" for variable "{}":'.format( LOGGER.info('Files matching "{}" for variable "{}":'.format(
args.pattern, args.variable)) args.pattern, args.variable))
LOGGER.info(('\n ' + (len(__name__) + 1) * ' ').join( LOGGER.info(('\n ' + (len(__name__) + 1) * ' ').join(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment