Skip to content

Commit

Permalink
Merge pull request #433 from online-judge-tools/fix/sleep-windows
Browse files Browse the repository at this point in the history
Change sleep command to time.sleep
  • Loading branch information
koba-e964 committed Dec 9, 2023
2 parents 7a9ab40 + 0579e83 commit b5ea6d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onlinejudge_verify/verify.py
Expand Up @@ -76,7 +76,7 @@ def verify_file(path: pathlib.Path, *, compilers: List[str], tle: float, jobs: i
directory = pathlib.Path('.verify-helper/cache') / hashlib.md5(url.encode()).hexdigest()
if not (directory / 'test').exists() or list((directory / 'test').iterdir()) == []:
directory.mkdir(parents=True, exist_ok=True)
exec_command(['sleep', '2'])
time.sleep(2)
command = ['oj', 'download', '--system', '-d', str(directory / 'test'), '--silent', url]

if os.environ.get('DROPBOX_TOKEN'):
Expand Down

0 comments on commit b5ea6d0

Please sign in to comment.