def split_cmdline(cmdline):
 (path, cmd) = os.path.split(cmdline[0])
 arguments = ' '.join(cmdline[1:]).replace('\n', ' ')
 if (LINUX and any(((x in cmdline[0]) for x in ('chrome', 'chromium')))):
  try:
   (exe, arguments) = cmdline[0].split(' ', 1)
   (path, cmd) = os.path.split(exe)
  except ValueError:
   arguments = None
 return (path, cmd, arguments)

def split_cmdline ( cmdline ) : ( path , cmd ) = os . path . split ( cmdline [ 0 ] ) arguments = ' ' . join ( cmdline [ 1 : ] ) . replace ( '\n' , ' ' ) if ( LINUX and any ( ( ( x in cmdline [ 0 ] ) for x in ( 'chrome' , 'chromium' ) ) ) ) : try : ( exe , arguments ) = cmdline [ 0 ] . split ( ' ' , 1 ) ( path , cmd ) = os . path . split ( exe ) except ValueError : arguments = None return ( path , cmd , arguments )
return path .