diff --git a/hb_internal/common/product.py b/hb_internal/common/product.py index 41831412e5715ec5b82d75f0debda773e375b35f..2e62fae25bc44fb0b211d3177afbc2c0b8bfeef2 100644 --- a/hb_internal/common/product.py +++ b/hb_internal/common/product.py @@ -52,7 +52,7 @@ class Product(): } bip_path = config.built_in_product_path for item in os.listdir(bip_path): - product_name = item.rstrip('.json') + product_name = item[0:-len('.json')] if item.endswith('.json') else item config_path = os.path.join(bip_path, item) info = read_json_file(config_path) yield {