From 75391a721937ea13e054b872abc53399fabbe968 Mon Sep 17 00:00:00 2001 From: William Petit Date: Fri, 15 Apr 2016 17:00:04 +0200 Subject: [PATCH] Correction du chargement de profils partiels via un chemin relatif au profil parent --- src/util/profile.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/util/profile.js b/src/util/profile.js index e7d16fd..5fc9b1b 100644 --- a/src/util/profile.js +++ b/src/util/profile.js @@ -26,8 +26,9 @@ exports.load = function(profileUrl, withImports) { node = item.value.node; // For each import found, load the partial and "mount" it on the current item if(node.import) { - Logger.info('Loading import "%s"', path.resolve(node.import)); - p = exports.load(node.import) + var importPath = path.resolve(path.dirname(profileUrl), node.import) + Logger.info('Loading import "%s"', importPath); + p = exports.load(importPath) .then(_mountImport.bind(node)) ; promises.push(p);