def addl_env_args(addl_env):
 if (addl_env is None):
  return []
 return (['env'] + [('%s=%s' % pair) for pair in addl_env.items()])

def addl_env_args ( addl_env ) : if ( addl_env is None ) : return [ ] return ( [ 'env' ] + [ ( '%s=%s' % pair ) for pair in addl_env . items ( ) ] )
build arguments for adding additional environment vars with env .