Skip to content

Commit

Permalink
fix bug to allow forcing update to existing input directory
Browse files Browse the repository at this point in the history
  • Loading branch information
aekiss committed Dec 12, 2017
1 parent 7541dde commit 0e01779
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion get_input_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def main():
my_dir = os.path.dirname(os.path.realpath(__file__))
tarball = os.path.join(my_dir, data_filename)

if os.path.exists('input'):
# POTENTIAL BUG: assumes 'input' was produced from data_filename - TODO: also check timestamp?
if os.path.exists('input') and os.path.exists(data_filename):
return 0

# Download input data.
Expand Down

0 comments on commit 0e01779

Please sign in to comment.