From a043460e807dd705c5a09a85a5de25e40d72fa8b Mon Sep 17 00:00:00 2001 From: Amit Markel Date: Thu, 7 Jan 2021 23:23:55 +0200 Subject: [PATCH] Update __init__.py Works with this fix -- need to take up to last component for the import to work. Perhaps it's possible to avoid reading a file so it's just hard coded. --- hebrew_numbers/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hebrew_numbers/__init__.py b/hebrew_numbers/__init__.py index dca5853..c571b77 100644 --- a/hebrew_numbers/__init__.py +++ b/hebrew_numbers/__init__.py @@ -3,7 +3,7 @@ import io import yaml -PROJ_PATH = path.sep.join(__file__.split(path.sep)[:-2]) +PROJ_PATH = path.sep.join(__file__.split(path.sep)[:-1]) DATA_PATH = path.join( PROJ_PATH, 'hebrew-special-numbers-default.yml') specialnumbers = yaml.safe_load(io.open(DATA_PATH, encoding='utf8'))