def get_os_platform():
 ver = sys.platform.lower()
 if ver.startswith('java'):
  import java.lang
  ver = java.lang.System.getProperty('os.name').lower()
 print ('platform: %s' % ver)
 return ver

def get_os_platform ( ) : ver = sys . platform . lower ( ) if ver . startswith ( 'java' ) : import java . lang ver = java . lang . System . getProperty ( 'os.name' ) . lower ( ) print ( 'platform: %s' % ver ) return ver
return platform name .