Skip to content
Snippets Groups Projects
Commit 0e604a53 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

ENH: new platform.wsl property for detecting WSL

parent a2ce4014
No related branches found
No related tags found
No related merge requests found
...@@ -321,6 +321,15 @@ class Platform(notifier.Notifier): ...@@ -321,6 +321,15 @@ class Platform(notifier.Notifier):
return os.environ.get('FSLDEVDIR', None) return os.environ.get('FSLDEVDIR', None)
@property
def wsl(self):
"""Boolean flag indicating whether we are running under Windows
Subsystem for Linux.
"""
plat = builtin_platform.platform().lower()
return 'microsoft' in plat
@property @property
def fslwsl(self): def fslwsl(self):
"""Boolean flag indicating whether FSL is installed in Windows """Boolean flag indicating whether FSL is installed in Windows
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment