req
This commit is contained in:
parent
7d68622d52
commit
878337a2f2
@ -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)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user