X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/ae0e673a17c3edcdca910fafb84eeff9dfe7b588..b92b58ba86f08f04b4f0436479d3d73ce0c03f00:/librarian/__init__.py?ds=sidebyside diff --git a/librarian/__init__.py b/librarian/__init__.py index 0074ee9..5c4a355 100644 --- a/librarian/__init__.py +++ b/librarian/__init__.py @@ -130,3 +130,7 @@ SERIALIZERS = { def serialize_children(element, format='raw'): return SERIALIZERS[format](element) + +def get_resource(path): + return os.path.join(os.path.dirname(__file__), path) +