Browse Source

_ROOT variable is useless

pull/149/head
Oliverpool 9 years ago
parent
commit
971a7a5114
  1. 6
      patacrep/__init__.py

6
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, # Directory containing shared data (default templates, custom LaTeX packages,
# etc.) # etc.)
_ROOT = os.path.abspath(resource_filename(__name__, 'data')) __DATADIR__ = os.path.abspath(resource_filename(__name__, 'data'))
def pkg_datapath(*path): def pkg_datapath(*path):
"""Return the package data path""" """Return the package data path"""
return os.path.join(_ROOT, *path) return os.path.join(__DATADIR__, *path)
__DATADIR__ = os.path.abspath(pkg_datapath())

Loading…
Cancel
Save