Skip to content

Commit cf799e9

Browse files
authored
Replace user of source command with (#5818)
Per https://stackoverflow.com/questions/13702425/source-command-not-found-in-sh-shell, `.` is more widely supportedthan `source`. For example, `bin/sh` packaged in Ubuntu does not have `source` but supports `.`. Credits for @RafaelZasas to discovering the issue on Ubuntu. Fixes #5636
1 parent 6e73140 commit cf799e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions/python.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function virtualEnvCmd(cwd: string, venvDir: string): { command: string;
1616
process.platform === "win32" ? ["Scripts", "activate.bat"] : ["bin", "activate"];
1717
const venvActivate = path.join(cwd, venvDir, ...activateScriptPath);
1818
return {
19-
command: process.platform === "win32" ? venvActivate : "source",
19+
command: process.platform === "win32" ? venvActivate : ".",
2020
args: [process.platform === "win32" ? "" : venvActivate],
2121
};
2222
}

0 commit comments

Comments
 (0)