Skip to content

Commit

Permalink
test wo MF modif
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumehu committed Nov 13, 2024
1 parent e59fa9f commit cc3b12c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions milatools/cli/init_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,13 +438,11 @@ def _copy_if_needed(linux_key_file: Path, windows_key_file: Path):
)
shutil.copy2(src=linux_key_file, dst=windows_key_file)


@functools.lru_cache()
def get_windows_home_path_in_wsl() -> Path:
assert running_inside_WSL()
windows_username = subprocess.getoutput("powershell.exe '$env:HomePath'").strip()
windows_username = windows_username.replace('\\', '/')
return Path(f"/mnt/c/{windows_username}")
windows_username = subprocess.getoutput("powershell.exe '$env:UserName'").strip()
return Path(f"/mnt/c/Users/{windows_username}")


def create_ssh_keypair(
Expand Down

0 comments on commit cc3b12c

Please sign in to comment.