export fix path for windows

This commit is contained in:
life
2016-01-01 21:04:09 +08:00
parent 739524205c
commit dd12dccede
3 changed files with 6 additions and 5 deletions

7
node_modules/common.js generated vendored
View File

@@ -142,6 +142,7 @@ var Common = {
},
// 拆分filePath的各个部分
splitFile: function(fullFilePath) {
var pme = this;
var ret = {
path: "", // a/b
name: "", // c.js
@@ -151,9 +152,9 @@ var Common = {
var me = this;
if(me.path) {
if(me.ext) {
return me.path + '/' + me.nameNotExt + '.' + me.ext;
return me.path + pme.getPathSep() + me.nameNotExt + '.' + me.ext;
} else {
return me.path + '/' + me.nameNotExt;
return me.path + pme.getPathSep() + me.nameNotExt;
}
} else {
if(me.ext) {
@@ -173,7 +174,7 @@ var Common = {
} else {
ret.name = strs[strs.length - 1];
strs.pop();
ret.path = strs.join('/');
ret.path = strs.join(pme.getPathSep());
}
// console.log("---");
// console.log(ret);