revert default plugins_path

This commit is contained in:
lesion 2022-12-11 01:00:37 +01:00
parent c956691d3d
commit bedf147e93
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -90,7 +90,7 @@ const pluginController = {
_load() { _load() {
const settingsController = require('./settings') const settingsController = require('./settings')
// load custom plugins // load custom plugins
const plugins_path = config.plugins_path || path.resolve(process.env.cwd || '', 'gancio_plugins') const plugins_path = config.plugins_path || path.resolve(process.env.cwd || '', 'plugins')
log.info(`Loading plugin ${plugins_path}`) log.info(`Loading plugin ${plugins_path}`)
if (fs.existsSync(plugins_path)) { if (fs.existsSync(plugins_path)) {
const plugins = fs.readdirSync(plugins_path) const plugins = fs.readdirSync(plugins_path)