summaryrefslogtreecommitdiff
path: root/sphinx/util/osutil.py
diff options
context:
space:
mode:
authorRobert Lehmann <mail@robertlehmann.de>2011-10-03 13:20:53 +0200
committerRobert Lehmann <mail@robertlehmann.de>2011-10-03 13:20:53 +0200
commit77329bf4977fa8f5b1d539a72f4555e23b7d67c2 (patch)
treebbb9a99e9afabde14b05a2295b4eda09132052b6 /sphinx/util/osutil.py
parent88af4549d728812f47191b026bd4bee62af79752 (diff)
downloadsphinx-git-77329bf4977fa8f5b1d539a72f4555e23b7d67c2.tar.gz
Closes #561: Add configuration option to prevent catalog bundling.
Diffstat (limited to 'sphinx/util/osutil.py')
-rw-r--r--sphinx/util/osutil.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sphinx/util/osutil.py b/sphinx/util/osutil.py
index b07fa6ab0..e37d23954 100644
--- a/sphinx/util/osutil.py
+++ b/sphinx/util/osutil.py
@@ -140,3 +140,6 @@ def safe_relpath(path, start=None):
return os.path.relpath(path, start)
except ValueError:
return path
+
+def find_catalog(docname, config):
+ return docname.split(SEP, 1)[0] if config.gettext_compact else docname