diff options
author | Bog <bogdan.creanga@serinf.it> | 2014-07-21 00:52:58 +0200 |
---|---|---|
committer | Bog <bogdan.creanga@serinf.it> | 2014-07-21 00:52:58 +0200 |
commit | 0cd79fb1f50b28dff50e394ffb9066919aea947c (patch) | |
tree | 796d386b114364c6974587fb11caf5f6ff8d7b91 | |
parent | cca03097f47f22783d42d1853faac6cf84607c5a (diff) | |
download | sqlalchemy-pr/120.tar.gz |
Fix doc gen on Windows platformpr/120
- replaced hardcoded ":" path separator with OS dependent one.
-rw-r--r-- | doc/build/builder/viewsource.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/build/builder/viewsource.py b/doc/build/builder/viewsource.py index 3f6b8263a..088cef2c2 100644 --- a/doc/build/builder/viewsource.py +++ b/doc/build/builder/viewsource.py @@ -167,7 +167,7 @@ class AutoSourceDirective(Directive): env = self.state.document.settings.env self.docname = env.docname - sourcefile = self.state.document.current_source.split(":")[0] + sourcefile = self.state.document.current_source.split(os.pathsep)[0] dir_ = os.path.dirname(sourcefile) files = [ f for f in os.listdir(dir_) if f.endswith(".py") |