def _shell_wrap_inner(command, shell=True, sudo_prefix=None):
 if (shell and (not env.use_shell)):
  shell = False
 if (sudo_prefix is None):
  sudo_prefix = ''
 else:
  sudo_prefix += ' '
 if shell:
  shell = (env.shell + ' ')
  command = ('"%s"' % command)
 else:
  shell = ''
 return ((sudo_prefix + shell) + command)

def _shell_wrap_inner ( command , shell = True , sudo_prefix = None ) : if ( shell and ( not env . use_shell ) ) : shell = False if ( sudo_prefix is None ) : sudo_prefix = '' else : sudo_prefix += ' ' if shell : shell = ( env . shell + ' ' ) command = ( '"%s"' % command ) else : shell = '' return ( ( sudo_prefix + shell ) + command )
conditionally wrap given command in env .