Browse Source

Correct pkg_datapath

pull/143/merge
Oliverpool 9 years ago
parent
commit
356aa455b5
  1. 4
      patacrep/__init__.py

4
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())

Loading…
Cancel
Save