def get_platform_string(current=None):
 if (current == None):
  import sys
  current = sys.platform
 if (current.startswith('win') or current.startswith('linux')):
  return 'nat'
 if current.startswith('cli'):
  return 'cli'
 return 'non'

def get_platform_string ( current = None ) : if ( current == None ) : import sys current = sys . platform if ( current . startswith ( 'win' ) or current . startswith ( 'linux' ) ) : return 'nat' if current . startswith ( 'cli' ) : return 'cli' return 'non'
return my customized platform string if no param .