mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2024-12-22 13:22:11 +01:00
Use absolute paths
This commit is contained in:
parent
a57746bbb4
commit
dbcce8ddfc
1 changed files with 4 additions and 2 deletions
|
@ -14,6 +14,7 @@ var Ul = require("ul")
|
||||||
, Typpy = require("typpy")
|
, Typpy = require("typpy")
|
||||||
, Exec = ChildProcess.exec
|
, Exec = ChildProcess.exec
|
||||||
, Spawn = ChildProcess.spawn
|
, Spawn = ChildProcess.spawn
|
||||||
|
, LowDb = require("lowdb")
|
||||||
;
|
;
|
||||||
|
|
||||||
// Constants
|
// Constants
|
||||||
|
@ -30,11 +31,12 @@ function GitStats(config, data) {
|
||||||
if (typeof config === "object") {
|
if (typeof config === "object") {
|
||||||
self.config = config;
|
self.config = config;
|
||||||
} else {
|
} else {
|
||||||
this.config_path = Deffy(config, CONFIG_PATH)
|
this.config_path = Abs(Deffy(config, CONFIG_PATH));
|
||||||
self.config = this.getConfig();
|
self.config = this.getConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.path = Deffy(data, DEFAULT_STORE);
|
this.path = Abs(Deffy(data, DEFAULT_STORE));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GitStats.prototype.getConfig = function () {
|
GitStats.prototype.getConfig = function () {
|
||||||
|
|
Loading…
Reference in a new issue