mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
util: fix findFile
This commit is contained in:
1 parent
ba425c5a9c
commit
f5226f154a
3 files changed
+3
-3
No files matched your search
@@ -12,7 +12,7 @@ export default async function readYamlCases(cfg: Record<string, any> = {}, check
|
||||
config.checker_type = cfg.checker_type || 'default';
|
||||
if (cfg.checker) {
|
||||
if (!cfg.checker.includes('.')) {
|
||||
config.checker = findFileSync(`@hydrojudge/vendor/testlib/checkers/${cfg.checker}.cpp`, false);
|
||||
config.checker = findFileSync(`@hydrooj/hydrojudgejudge/vendor/testlib/checkers/${cfg.checker}.cpp`, false);
|
||||
}
|
||||
if (!config.checker) config.checker = checkFile(cfg.checker, 'Cannot find checker {0}.');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user