Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/plugin/mindmap/edit-mindmap/build/lib/config.js

19 lines
425 B

var fs = require('fs'),
path = require('path'),
config = {};
exports.getProjectName = function() {
return config.name;
};
//js文件夹必须和tools在同一级目录
exports.getJsDir = function() {
if(config.jsDir) {
return path.resolve(__dirname, '../../', config.jsDir);
}
};
exports.parse = function(uri) {
uri = path.normalize(uri);
config = JSON.parse( fs.readFileSync(uri) );
};