diff --git a/fsl/utils/platform.py b/fsl/utils/platform.py index 3620ef9ade1b8dd8f90da0cb3225a87514e75c17..fbd51d657a42ed4c562b102767a8e29a2b4e5562 100644 --- a/fsl/utils/platform.py +++ b/fsl/utils/platform.py @@ -321,6 +321,15 @@ class Platform(notifier.Notifier): 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 def fslwsl(self): """Boolean flag indicating whether FSL is installed in Windows