def get_model_location(session, service_definition, service_name=None):
 service_model = ServiceModel(service_definition)
 if (service_name is None):
  endpoint_prefix = service_model.endpoint_prefix
  service_name = _get_service_name(session, endpoint_prefix)
 api_version = service_model.api_version
 data_path = session.get_component('data_loader').CUSTOMER_DATA_PATH
 service_model_name = ('service-%d.json' % int(float(service_definition.get('version', '2.0'))))
 return os.path.join(data_path, service_name, api_version, service_model_name)

def get_model_location ( session , service_definition , service_name = None ) : service_model = ServiceModel ( service_definition ) if ( service_name is None ) : endpoint_prefix = service_model . endpoint_prefix service_name = _get_service_name ( session , endpoint_prefix ) api_version = service_model . api_version data_path = session . get_component ( 'data_loader' ) . CUSTOMER_DATA_PATH service_model_name = ( 'service-%d.json' % int ( float ( service_definition . get ( 'version' , '2.0' ) ) ) ) return os . path . join ( data_path , service_name , api_version , service_model_name )
gets the path of where a service-2 .