mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: 可调的性能设置
This commit is contained in:
1 parent
8c8dcb89eb
commit
2bf1a18890
21 files changed
+237
-274
No files matched your search
@@ -100,9 +100,9 @@ export async function setting(pending: string[], fail: string[], modelSetting: t
|
||||
try {
|
||||
const cfg: any = yaml.load(fs.readFileSync(p).toString());
|
||||
for (const key in cfg) {
|
||||
let val;
|
||||
if (typeof cfg[key].default === 'string') {
|
||||
val = cfg[key].default
|
||||
let val = cfg[key].default;
|
||||
if (typeof val === 'string') {
|
||||
val = val
|
||||
.replace(/\$TEMP/g, os.tmpdir())
|
||||
.replace(/\$HOME/g, os.homedir());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user