diff --git a/gn2pg/store_postgresql.py b/gn2pg/store_postgresql.py index 99790d8..8f5617a 100644 --- a/gn2pg/store_postgresql.py +++ b/gn2pg/store_postgresql.py @@ -287,7 +287,7 @@ def custom_script(self, script: str = "to_gnsynthese") -> None: logger.info(_("Start to execute %s script"), script) conn = self._db.connect() if script == "to_gnsynthese": - file = importlib.resources.files(__name__).joinpath("data", "to_gnsynthese.sql") + file = importlib.resources.files(__package__).joinpath("data", "to_gnsynthese.sql") logger.info( _("You choosed to use internal to_gnsynthese.sql script in schema %s"), self._db_schema,