]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix doc gen on Windows platform
authorBog <bogdan.creanga@serinf.it>
Sun, 20 Jul 2014 22:52:58 +0000 (00:52 +0200)
committerBog <bogdan.creanga@serinf.it>
Sun, 20 Jul 2014 22:52:58 +0000 (00:52 +0200)
- replaced hardcoded ":" path separator with OS dependent one.

doc/build/builder/viewsource.py

index 3f6b8263a8c8049f576ffbe5b4b39dd2a7d4b055..088cef2c229a6384daac6dba129b14071d18919c 100644 (file)
@@ -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")