def _get_spec(self, spec_file):
        """Get json specification from package data."""
        spec_file_path = os.path.join(
            pkg_resources.
            resource_filename(
                'reana_commons',
                'openapi_specifications'),
            spec_file)

        with open(spec_file_path) as f:
            json_spec = json.load(f)
        return json_spec
def _get_spec ( self , spec_file ) : spec_file_path = os . path . join ( pkg_resources . resource_filename ( 'reana_commons' , 'openapi_specifications' ) , spec_file ) with open ( spec_file_path ) as f : json_spec = json . load ( f ) return json_spec
Get json specification from package data.