Skip to content

Commit

Permalink
change path specification
Browse files Browse the repository at this point in the history
  • Loading branch information
paul committed Feb 16, 2023
1 parent d81c226 commit ceda7cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openfisca_france_data/reforms/inversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@

# Data creation

path = "/home/paul/Documents/projets/openfisca-france-data/tests/inversion/remplacement_2021.yaml"
cd = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
path = os.path.join(cd, "tests", "inversion", "remplacement_2021.yaml")
year = re.match(".*([0-9]{4}).yaml", path).group(1)

with open(path) as yaml:
Expand Down

0 comments on commit ceda7cf

Please sign in to comment.