fix support for --setting-path

pull/282/merge
nightwing 2017-05-11 14:30:11 +04:00
rodzic d8c59a1d9d
commit 600f4584c0
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -44,9 +44,9 @@ define(function(require, exports, module) {
var TEMPLATE = options.template || { user: {}, project: {}, state: {}};
var INTERVAL = 1000;
var PATH = {
"project": c9.toInternalPath(options.projectConfigPath || "/.c9") + "/project.settings",
"user": c9.toInternalPath(options.userConfigPath || "~/.c9") + "/user.settings",
"state": c9.toInternalPath(options.stateConfigFilePath || (options.stateConfigPath || "/.c9") + "/state.settings")
"project": util.normalizePath(c9.toInternalPath(options.projectConfigPath || "/.c9")) + "/project.settings",
"user": util.normalizePath(c9.toInternalPath(options.userConfigPath || "~/.c9")) + "/user.settings",
"state": util.normalizePath(c9.toInternalPath(options.stateConfigFilePath || (options.stateConfigPath || "/.c9") + "/state.settings"))
};
var KEYS = Object.keys(PATH);