#NEWLINE# def _GenerateConfigForRuntime( self ) : #NEWLINE# #INDENT# 'Return a copy of runtime config for starting a PHP runtime instance.\n\n    The returned config uses the bundled PHP binaries if none is specified\n    already through the command line arguments.\n\n    Returns:\n      The created runtime_config_pb2.Config protobuf object.\n    ' #NEWLINE# def setattr_if_empty( obj , field , value ) : #NEWLINE# #INDENT# if ( ( not getattr ( obj , field ) ) and value ) : #NEWLINE# #INDENT# setattr ( obj , field , value ) #NEWLINE# #UNINDENT# #UNINDENT# runtime = self . _module_configuration . runtime #NEWLINE# runtime_config = self . _runtime_config_getter ( ) #NEWLINE# setattr_if_empty ( runtime_config . php_config , 'php_executable_path' , _get_php_executable_path ( runtime ) ) #NEWLINE# setattr_if_empty ( runtime_config . php_config , 'gae_extension_path' , _get_php_extension_path ( 'gae_runtime_module' , runtime ) ) #NEWLINE# setattr_if_empty ( runtime_config . php_config , 'xdebug_extension_path' , _get_php_extension_path ( 'xdebug' , runtime ) ) #NEWLINE# return runtime_config