1602 / compound

MVC framework. Built on Node.JS. Works on server and browser.
http://compoundjs.com
1.6k stars 182 forks source link

Console: change __dirname to expected __dirname #643

Open randunel opened 10 years ago

randunel commented 10 years ago

Problem: when running rw c or rw c "script", the __dirname is /path/to/project/node_modules/compound/lib/server. Expected: __dirname === /path/to/project

Current workaround: var dirname = './', since ./ points to the correct local dir.