|
@ -16,9 +16,9 @@ __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(os.path.dirname(__file__)) |
|
|
_ROOT = 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, 'data', path) |
|
|
return os.path.join(_ROOT, path) |
|
|
|
|
|
|
|
|
__DATADIR__ = os.path.abspath(pkg_datapath()) |
|
|
__DATADIR__ = os.path.abspath(pkg_datapath()) |
|
|