From 971a7a511486e56143f00f3dd22d8cbe680acb40 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Mon, 2 Nov 2015 12:55:19 +0100 Subject: [PATCH] _ROOT variable is useless --- patacrep/__init__.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/patacrep/__init__.py b/patacrep/__init__.py index 5effb2c4..60e4cd6a 100644 --- a/patacrep/__init__.py +++ b/patacrep/__init__.py @@ -16,9 +16,7 @@ __version__ = '.'.join([str(number) for number in __TUPLE_VERSION__]) # Directory containing shared data (default templates, custom LaTeX packages, # etc.) -_ROOT = os.path.abspath(resource_filename(__name__, 'data')) +__DATADIR__ = os.path.abspath(resource_filename(__name__, 'data')) def pkg_datapath(*path): """Return the package data path""" - return os.path.join(_ROOT, *path) - -__DATADIR__ = os.path.abspath(pkg_datapath()) + return os.path.join(__DATADIR__, *path)