prefer fs.dappPath
This commit is contained in:
parent
8be1090a44
commit
f0f95554a5
|
@ -1,6 +1,5 @@
|
||||||
const async = require('async');
|
const async = require('async');
|
||||||
var Plugin = require('./plugin.js');
|
var Plugin = require('./plugin.js');
|
||||||
var utils = require('../utils/utils.js');
|
|
||||||
var fs = require('../core/fs.js');
|
var fs = require('../core/fs.js');
|
||||||
|
|
||||||
var Plugins = function(options) {
|
var Plugins = function(options) {
|
||||||
|
@ -75,7 +74,7 @@ Plugins.prototype.loadInternalPlugin = function(pluginName, pluginConfig) {
|
||||||
};
|
};
|
||||||
|
|
||||||
Plugins.prototype.loadPlugin = function(pluginName, pluginConfig) {
|
Plugins.prototype.loadPlugin = function(pluginName, pluginConfig) {
|
||||||
var pluginPath = utils.joinPath(utils.pwd(), 'node_modules', pluginName);
|
var pluginPath = fs.dappPath('node_modules', pluginName);
|
||||||
var plugin = require(pluginPath);
|
var plugin = require(pluginPath);
|
||||||
|
|
||||||
var pluginWrapper = new Plugin({
|
var pluginWrapper = new Plugin({
|
||||||
|
|
Loading…
Reference in New Issue