Commit d31c9966 authored by Florian Pagnoux's avatar Florian Pagnoux
Browse files

Don't rely on country template

parent 45ee2128
...@@ -3,15 +3,20 @@ ...@@ -3,15 +3,20 @@
import os import os
from openfisca_core.taxbenefitsystems import TaxBenefitSystem from openfisca_core.taxbenefitsystems import TaxBenefitSystem
from openfisca_core.entities import build_entity
from openfisca_country_template import entities Person = build_entity(
key = "person",
plural = "persons",
label = u'Person',
is_person = True,
)
COUNTRY_DIR = os.path.dirname(os.path.abspath(__file__)) COUNTRY_DIR = os.path.dirname(os.path.abspath(__file__))
class CountryTaxBenefitSystem(TaxBenefitSystem): class CountryTaxBenefitSystem(TaxBenefitSystem):
def __init__(self): def __init__(self):
super(CountryTaxBenefitSystem, self).__init__(entities.entities) super(CountryTaxBenefitSystem, self).__init__([Person])
param_path = os.path.join(COUNTRY_DIR, 'parameters') param_path = os.path.join(COUNTRY_DIR, 'parameters')
self.load_parameters(param_path) self.load_parameters(param_path)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment