From a0455de2869934e1e819192a9c6fb68a67feebac Mon Sep 17 00:00:00 2001 From: Anant Narayan Patel Date: Sun, 18 Jun 2023 09:29:26 +0530 Subject: [PATCH] Python added venv activation + Fixed #1034 + Added if condition to check if venv is present in workspace. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 784074f..14b4d25 100644 --- a/package.json +++ b/package.json @@ -139,7 +139,7 @@ "cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", "objective-c": "cd $dir && gcc -framework Cocoa $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", "php": "php", - "python": "python -u", + "python": "if [[ -n $(find . -type f -name 'activate') ]]; then source activate; fi && python -u", "perl": "perl", "perl6": "perl6", "ruby": "ruby",