From c0b54ae2d209d9e4f932935f0757e5db86065853 Mon Sep 17 00:00:00 2001 From: Rostislav Khlebnikov Date: Tue, 21 Jan 2025 12:29:49 -0500 Subject: [PATCH] Fix WSL --- bin/bbs_make_vscode.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/bbs_make_vscode.py b/bin/bbs_make_vscode.py index 638799bf..30b72aae 100644 --- a/bin/bbs_make_vscode.py +++ b/bin/bbs_make_vscode.py @@ -21,8 +21,11 @@ def backup(path: pathlib.Path): bdeToolsDir = binDir.parent isGitBash = shutil.which("cygpath") is not None -isWSL = not isGitBash and "WSL" in os.uname().release - +isWSL = ( + not isGitBash + and "WSL" in os.uname().release + and "container" not in os.environ +) def cygpath(opt, file): return subprocess.run(