From 356aa455b5fdcc2c047da15d4be62ac84a07d54d Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Fri, 30 Oct 2015 07:48:37 +0100 Subject: [PATCH] Correct pkg_datapath --- patacrep/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patacrep/__init__.py b/patacrep/__init__.py index 0b839a45..13e74a66 100644 --- a/patacrep/__init__.py +++ b/patacrep/__init__.py @@ -16,9 +16,9 @@ __version__ = '.'.join([str(number) for number in __TUPLE_VERSION__]) # Directory containing shared data (default templates, custom LaTeX packages, # etc.) -_ROOT = os.path.abspath(os.path.dirname(__file__)) +_ROOT = os.path.abspath(resource_filename(__name__, 'data')) def pkg_datapath(path=''): """Return the package data path""" - return os.path.join(_ROOT, 'data', path) + return os.path.join(_ROOT, path) __DATADIR__ = os.path.abspath(pkg_datapath())