mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-03-30 13:33:42 +08:00
Add check for WSL_DISTRO_NAME for is_wsl()
WSL supports custom kernels. Add check for WSL_DISTRO_NAME to check custom kernels.
This commit is contained in:
parent
850e8b42ff
commit
6ff2489510
@ -186,6 +186,8 @@ def is_wsl():
|
||||
return True
|
||||
elif version.endswith("microsoft-standard-WSL2"):
|
||||
return True
|
||||
if os.environ.get("WSL_DISTRO_NAME"):
|
||||
return True
|
||||
return False
|
||||
|
||||
def get_torch_device():
|
||||
|
||||
Loading…
Reference in New Issue
Block a user