diff --git a/src/index.js b/src/index.js index 8aadbd2..813d919 100644 --- a/src/index.js +++ b/src/index.js @@ -6,7 +6,7 @@ Command-line resume generation logic for Scrappy. */ var ARGS = require( 'minimist' ) - , HMR = require( './hmr'); + , HMR = require( './scrappy'); try { diff --git a/src/scrappy.js b/src/scrappy.js index 4f63845..5720c0d 100644 --- a/src/scrappy.js +++ b/src/scrappy.js @@ -73,10 +73,10 @@ module.exports = function () { var fOut = path.join( process.cwd(), f.substring( 0, f.lastIndexOf('.') + 1 ) + fObj.ext ); console.log( 'Generating ' + fName.toUpperCase() + ' resume: ' + fOut ); - var themeFile = path.join( __dirname, '/../themes/', _opts.theme, + var themeFile = path.join( __dirname, '../../blueprint/', _opts.theme, fName + '.' + (fObj.fmt || fObj.ext)); var cssData = (fName != 'html' && fName != 'pdf') ? null : - FS.readFileSync( path.join( __dirname, '/../themes/', _opts.theme, 'html.css' ), 'utf8' ); + FS.readFileSync( path.join( __dirname, '../../blueprint/', _opts.theme, 'html.css' ), 'utf8' ); var mk = FS.readFileSync( themeFile, 'utf8' ); // Compile and invoke the template