From dbcce8ddfc68b997c6d75b65aa47e22022d20770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionic=C4=83=20Biz=C4=83u?= Date: Sun, 12 Jul 2015 16:59:59 +0300 Subject: [PATCH] Use absolute paths --- lib/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index 69bac41..c00e9ad 100644 --- a/lib/index.js +++ b/lib/index.js @@ -14,6 +14,7 @@ var Ul = require("ul") , Typpy = require("typpy") , Exec = ChildProcess.exec , Spawn = ChildProcess.spawn + , LowDb = require("lowdb") ; // Constants @@ -30,11 +31,12 @@ function GitStats(config, data) { if (typeof config === "object") { self.config = config; } else { - this.config_path = Deffy(config, CONFIG_PATH) + this.config_path = Abs(Deffy(config, CONFIG_PATH)); self.config = this.getConfig(); } - this.path = Deffy(data, DEFAULT_STORE); + this.path = Abs(Deffy(data, DEFAULT_STORE)); + } GitStats.prototype.getConfig = function () {