def get_python_args(fname, python_args, interact, debug, end_args):
 p_args = []
 if (python_args is not None):
  p_args += python_args.split()
 if interact:
  p_args.append('-i')
 if debug:
  p_args.extend(['-m', 'pdb'])
 if (fname is not None):
  if ((os.name == 'nt') and debug):
   p_args.append(osp.normpath(fname).replace(os.sep, '/'))
  else:
   p_args.append(fname)
 if end_args:
  p_args.extend(shell_split(end_args))
 return p_args

def get_python_args ( fname , python_args , interact , debug , end_args ) : p_args = [ ] if ( python_args is not None ) : p_args += python_args . split ( ) if interact : p_args . append ( '-i' ) if debug : p_args . extend ( [ '-m' , 'pdb' ] ) if ( fname is not None ) : if ( ( os . name == 'nt' ) and debug ) : p_args . append ( osp . normpath ( fname ) . replace ( os . sep , '/' ) ) else : p_args . append ( fname ) if end_args : p_args . extend ( shell_split ( end_args ) ) return p_args
construct python interpreter arguments .