import sys

class OSUtil():
    def __init__(self):
        pass

    def platform(self):
        platform = sys.platform # Map from python platform name to ue4 platform name
        names = {
            'cygwin': 'Win', # could be win32 also
            'win32': 'Win',
            'win64': 'Win',
            'linux2': 'Linux',
            'darwin': 'Mac',
            }
        return names[platform]

@@ -3,16 +3,26 @@
 port sys
+, platform
 %0A%0Aclass 
@@ -105,31 +105,230 @@
     
-platform = sys.platform
+win = 'Win'%0A        mac = 'Mac'%0A        linux = 'Linux'%0A        if platform.release().endswith('Microsoft'):%0A            # This is a hacky way to check whether I am running Ubuntu on Windows%0A            return win%0A%0A       
  # M
@@ -417,21 +417,19 @@
 ygwin': 
-'W
+w
 in
-'
 , # coul
@@ -465,21 +465,19 @@
 win32': 
-'W
+w
 in
-'
 ,%0A      
@@ -491,21 +491,19 @@
 win64': 
-'W
+w
 in
-'
 ,%0A      
@@ -518,23 +518,21 @@
 inux2': 
-'L
+l
 inux
-'
 ,%0A      
@@ -547,21 +547,19 @@
 arwin': 
-'M
+m
 ac
-'
 ,%0A      
@@ -587,16 +587,20 @@
 n names%5B
+sys.
 platform

Fix the platform check for windows.