This commit is contained in:
pplokijuhyg 2020-01-14 14:22:21 +08:00
parent 7d68622d52
commit 878337a2f2

View File

@ -4,10 +4,15 @@ let getreptilelist =(dirlist)=>{
let reptilelist = [];
// console.log(dirlist)
for(let i in dirlist){
try{
let reptile = require(__dirname + "/" + dirlist[i] +"/config.js" )
console.log(reptile)
reptilelist.push(reptile)
}catch{
console.log("badimport")
}
}
res(reptilelist)
})