[u2QuickLoad] Inline some requires
This commit is contained in:
parent
7d00ef5082
commit
bbaa567c75
1 changed files with 2 additions and 4 deletions
|
@ -1,10 +1,8 @@
|
||||||
const { readdirSync } = require('fs');
|
|
||||||
const { join } = require('path');
|
const { join } = require('path');
|
||||||
const Module = require('module');
|
const Module = require('module');
|
||||||
|
|
||||||
const paths = require('../paths');
|
|
||||||
|
|
||||||
const base = join(paths.getExeDir(), 'modules');
|
const base = join(require('../paths').getExeDir(), 'modules');
|
||||||
for (const dir of readdirSync(base)) {
|
for (const dir of require('fs').readdirSync(base)) {
|
||||||
Module.globalPaths.push(join(base, dir));
|
Module.globalPaths.push(join(base, dir));
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue