[u2QuickLoad] Inline some requires

This commit is contained in:
Ducko 2022-03-14 09:36:54 +00:00
parent 7d00ef5082
commit bbaa567c75

View file

@ -1,10 +1,8 @@
const { readdirSync } = require('fs');
const { join } = require('path');
const Module = require('module');
const paths = require('../paths');
const base = join(paths.getExeDir(), 'modules');
for (const dir of readdirSync(base)) {
const base = join(require('../paths').getExeDir(), 'modules');
for (const dir of require('fs').readdirSync(base)) {
Module.globalPaths.push(join(base, dir));
}