diff --git a/server/common/files.go b/server/common/files.go index 493a1bc6..d51cef50 100644 --- a/server/common/files.go +++ b/server/common/files.go @@ -12,6 +12,9 @@ func GetCurrentDir() string { if MOCK_CURRENT_DIR != "" { return MOCK_CURRENT_DIR } + if os.Getenv("WORK_DIR") != "" { + return os.Getenv("WORK_DIR") + } ex, _ := os.Executable() return filepath.Dir(ex) }