jcoppieters / cody

Javascript Content Management System running on Node.js
howest.cody-cms.org
MIT License
678 stars 197 forks source link

var sitename = __filename.split("/").pop().split(".")[0]; #25

Closed linksgo2011 closed 9 years ago

linksgo2011 commented 9 years ago

It does not support the Windows platform

ticup commented 9 years ago

Ok thanks, I need to find the courage to run and debug it on a windows platform one of these days!

Tellan commented 9 years ago

I've tested it working with path.sep for platform agnostic path separators.

var sitename = __filename.split(path.sep).pop().split(".")[0];
jcoppieters commented 9 years ago

I've tested it the proposed change on windows 8, seems to work fine! Thanks Lin. I've pushed it and will do an npm update too.