Skip to content

Commit

Permalink
Fix WSL
Browse files Browse the repository at this point in the history
  • Loading branch information
Rostislav Khlebnikov authored and GitHub Enterprise committed Jan 21, 2025
1 parent 7f6eee8 commit c0b54ae
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/bbs_make_vscode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c0b54ae

Please sign in to comment.