From cb942e9b6a1f4f8cb4b18d3905475e800057a785 Mon Sep 17 00:00:00 2001 From: Thomas Madlener Date: Fri, 8 Nov 2024 13:20:18 +0100 Subject: [PATCH] Fix imports to be absolute --- python/podio/root_io.py | 3 +-- python/podio/sio_io.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/python/podio/root_io.py b/python/podio/root_io.py index d2cd8a23e..95702f086 100644 --- a/python/podio/root_io.py +++ b/python/podio/root_io.py @@ -3,13 +3,12 @@ from ROOT import gSystem -from utils import convert_to_str_paths - gSystem.Load("libpodioRootIO") # noqa: E402 from ROOT import podio # noqa: E402 # pylint: disable=wrong-import-position from podio.base_reader import BaseReaderMixin # pylint: disable=wrong-import-position # noqa: E402 from podio.base_writer import BaseWriterMixin # pylint: disable=wrong-import-position # noqa: E402 +from podio.utils import convert_to_str_paths # pylint: disable=wrong-import-position # noqa: E402 class Reader(BaseReaderMixin): diff --git a/python/podio/sio_io.py b/python/podio/sio_io.py index 848729d79..9926b33ff 100644 --- a/python/podio/sio_io.py +++ b/python/podio/sio_io.py @@ -3,8 +3,6 @@ from ROOT import gSystem -from utils import convert_to_str_paths - if gSystem.DynamicPathName("libpodioSioIO.so", True): gSystem.Load("libpodioSioIO") # noqa: 402 else: @@ -13,6 +11,7 @@ from podio.base_reader import BaseReaderMixin # pylint: disable=wrong-import-position from podio.base_writer import BaseWriterMixin # pylint: disable=wrong-import-position +from podio.utils import convert_to_str_paths # pylint: disable=wrong-import-position # noqa: E402 class Reader(BaseReaderMixin):