mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-14 07:00:53 +00:00
16 lines
305 B
JavaScript
16 lines
305 B
JavaScript
var fs = require('fs');
|
|
var User = require('user');
|
|
|
|
function log(o) {console.log(o)}
|
|
var Evt = {
|
|
// 项目绝对地址
|
|
getBasePath: function() {
|
|
return process.cwd();
|
|
},
|
|
getAbsolutePath: function(relative) {
|
|
var me = this;
|
|
return me.getBasePath() + '/' + relative;
|
|
}
|
|
};
|
|
module.exports = Evt;
|