const os = require('os');
const path = require('path');

exports.USER_PATH = os.homedir();
exports.DEXT_PATH = path.resolve(exports.USER_PATH, '.dext');
exports.THEME_PATH = path.resolve(exports.DEXT_PATH, 'plugins');
exports.CORE_PLUGIN_PATH = path.resolve(__dirname, '..', 'resources', 'plugins');
exports.PLUGIN_PATH = path.resolve(exports.DEXT_PATH, 'plugins');

@@ -339,28 +339,231 @@
 orts.DEXT_PATH, 'plugins');%0A
+%0A/**%0A * Retrieve the path to the plugin%0A *%0A * @param %7BString%7D plugin - The name of the plugin/package%0A * @return %7BString%7D%0A */%0Aexports.getPluginPath = plugin =%3E path.resolve(exports.PLUGIN_PATH, plugin);%0A

add getPluginPath()