Commit 8ee56229 authored by Fred Chasen's avatar Fred Chasen

Fix input path resolution

parent fceec262
......@@ -114,14 +114,14 @@ Renderer.prototype.fileExists = function (inputPath) {
};
Renderer.prototype.getRendererPath = function () {
var directoryPath = __dirname.replace('lib', 'renderer');
var normPath = _path2.default.normalize(directoryPath);
var directoryPath = _path2.default.normalize(__dirname);
var rendererPath = _path2.default.resolve(directoryPath, '../renderer');
if (normPath[normPath.length] != "/") {
normPath += "/";
if (rendererPath[normPath.length] != "/") {
rendererPath += "/";
}
return normPath;
return rendererPath;
};
Renderer.prototype.getRelativePath = function (basePath, inputPath) {
......
......@@ -92,14 +92,14 @@ Renderer.prototype.fileExists = function (inputPath) {
};
Renderer.prototype.getRendererPath = function () {
var directoryPath = __dirname.replace('lib', 'renderer');
var normPath = path.normalize(directoryPath);
var directoryPath = path.normalize(__dirname);
var rendererPath = path.resolve(directoryPath, '../renderer');
if (normPath[normPath.length] != "/") {
normPath += "/";
if (rendererPath[normPath.length] != "/") {
rendererPath += "/";
}
return normPath;
return rendererPath;
};
Renderer.prototype.getRelativePath = function (basePath, inputPath) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment