Skip to content

Commit

Permalink
fix: dont resolve venv symlinks (#747)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawkyZ authored Jan 8, 2025
1 parent a03d6c3 commit 00acaf3
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions internal/sdk/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,8 @@ func UpdateEnvironmentAndReturnAdditionalParams(sdks []types.LsSdk, logger zerol
case strings.Contains(strings.ToLower(sdk.Type), "java"):
env["JAVA_HOME"] = path
case strings.Contains(strings.ToLower(sdk.Type), "python"):
symlinks, err := filepath.EvalSymlinks(path)
if err != nil {
symlinks = path
}
env["PYTHONPATH"] = symlinks
env["PYTHONHOME"] = filepath.Dir(symlinks)
pathExt = filepath.Dir(symlinks)
additionalParameters = append(additionalParameters, "--command="+symlinks)
pathExt = filepath.Dir(path)
additionalParameters = append(additionalParameters, "--command="+path)
case strings.Contains(strings.ToLower(sdk.Type), "go"):
env["GOROOT"] = path
}
Expand Down

0 comments on commit 00acaf3

Please sign in to comment.