|
@@ -38,6 +38,11 @@ var (
|
|
|
// try initializing from system.json on disk
|
|
// try initializing from system.json on disk
|
|
|
func init() {
|
|
func init() {
|
|
|
// try loading existing config
|
|
// try loading existing config
|
|
|
|
|
+ basePath, err := os.Getwd()
|
|
|
|
|
+ if err != nil {
|
|
|
|
|
+ errmsg := fmt.Sprintf("Couldn't get cwd: %v",err)
|
|
|
|
|
+ logger.Error(errmsg)
|
|
|
|
|
+ }
|
|
|
confPath := filepath.Join(basePath, "settings", "system.json")
|
|
confPath := filepath.Join(basePath, "settings", "system.json")
|
|
|
file, err := os.Open(confPath)
|
|
file, err := os.Open(confPath)
|
|
|
if err != nil {
|
|
if err != nil {
|