Permalink
Browse files

Changing __dirname to process.cwd()

  • Loading branch information...
1 parent e27c185 commit f41de37b81ff6e04853a093287d87d64cf58eac8 @zyklus zyklus committed Sep 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 encode_folder
View
2 encode_folder
@@ -96,7 +96,7 @@ function die( msg ){
**/
function resolve( folder ){
if( folder.indexOf( '/' ) ){
- folder = path.join( __dirname, folder );
+ folder = path.join( process.cwd(), folder );
}
if( path.existsSync( folder ) ){

0 comments on commit f41de37

Please sign in to comment.