summaryrefslogtreecommitdiff
path: root/repoze/bfg/path.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-06-27 06:17:35 +0000
committerChris McDonough <chrism@agendaless.com>2009-06-27 06:17:35 +0000
commit3c9613061499de48d65714d11fe97b19475fb97d (patch)
tree2929ee287566b6058ad52cf929786f27b1084540 /repoze/bfg/path.py
parentd9a76e61e75f77fbacf6ee5525f64fe2ac37184f (diff)
downloadpyramid-3c9613061499de48d65714d11fe97b19475fb97d.tar.gz
pyramid-3c9613061499de48d65714d11fe97b19475fb97d.tar.bz2
pyramid-3c9613061499de48d65714d11fe97b19475fb97d.zip
- The ``repoze.bfg.templating`` module now uses ``pkg_resources`` to
locate and register template files instead of using an absolute path name.
Diffstat (limited to 'repoze/bfg/path.py')
-rw-r--r--repoze/bfg/path.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/repoze/bfg/path.py b/repoze/bfg/path.py
index d8e90f0ff..5b827f04b 100644
--- a/repoze/bfg/path.py
+++ b/repoze/bfg/path.py
@@ -3,6 +3,7 @@ import sys
import pkg_resources
def caller_path(path, level=2):
+ """ Return an absolute path """
if not os.path.isabs(path):
module = caller_module(level+1)
prefix = package_path(module)