Skip to content

Commit 1ef9a97

Browse files
authored
Merge pull request yosupo06#792 from to-omer/fix-generate
fix problem.py
2 parents 7b26700 + 544ebd8 commit 1ef9a97

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

problem.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,8 @@ def is_testcases_already_generated(self) -> bool:
300300

301301
def is_checker_already_generated(self) -> bool:
302302
checker_bin = self.checker.parent / self.checker.stem
303+
if platform.system() == 'Windows':
304+
checker_bin = checker_bin.with_suffix('.exe')
303305
if not checker_bin.exists():
304306
return False
305307

@@ -319,7 +321,7 @@ def list_depending_files(self) -> Iterator[Path]:
319321
continue
320322
if not path.is_file():
321323
continue # ignore directories
322-
if path.suffix == '':
324+
if path.suffix == ('' if platform.system() != 'Windows' else '.exe'):
323325
continue # ignore compiled binaries
324326
if path.name.endswith('.html'):
325327
continue # ignore generated HTML files

0 commit comments

Comments
 (0)