Fix: Set BYTEMAN_HOME environment variable when not set

- Set the BYTEMAN_HOME environment variable to the correct path if it's not already set.
- Used fmt.Sprintf to dynamically construct the path for BYTEMAN_HOME.
This commit is contained in:
陈腾 2024-12-27 16:18:31 +08:00
parent bc039aa483
commit 4ca17f54c9
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ func SetRuntimeEnv() error {
if err != nil {
return err
}
bytemanHome = fmt.Sprintf("%s/tools/byteman", wd)
}
path := os.Getenv("PATH")