Skip to content

Commit

Permalink
findfile() is somewhat deterministic now.
Browse files Browse the repository at this point in the history
  • Loading branch information
zshaheen committed Jul 26, 2018
1 parent 72b1eb9 commit 842724d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acme_diags/driver/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get_set_name(set_name):

def _findfile(path_name, data_name, season):
"""Locate file name based on data_name and season."""
dir_files = os.listdir(path_name)
dir_files = sorted(os.listdir(path_name))
for filename in dir_files:
if filename.startswith(data_name + '_' + season):
return os.path.join(path_name, filename)
Expand Down

0 comments on commit 842724d

Please sign in to comment.