Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mzuenni committed Feb 20, 2024
1 parent 7fe0edc commit 6a42c80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ def build_problem_zip(problem, output, statement_language):
# Build list of files to store in ZIP file.
copyfiles = set()

# Include all files beside testcases
for pattern, required in files:
# Only include hidden files if the pattern starts with a '.'.
paths = list(util.glob(problem.path, pattern, include_hidden=pattern[0] == '.'))
Expand All @@ -171,6 +172,7 @@ def build_problem_zip(problem, output, statement_language):
out = problem.name / out
copyfiles.add((f, out))

# Include all testcases (specified by a .in file) and copy all related files
for pattern, required in testcases:
paths = list(util.glob(problem.path, pattern))
if required and len(paths) == 0:
Expand Down

0 comments on commit 6a42c80

Please sign in to comment.