doc/conf.py
changeset 11057 0b59724cb3f2
parent 10496 e95b559a06a2
child 11631 faf279e33298
--- a/doc/conf.py	Mon Jan 04 18:40:30 2016 +0100
+++ b/doc/conf.py	Sat Jan 16 13:48:51 2016 +0100
@@ -36,9 +36,10 @@
 path = __file__
 path = osp.dirname(path)  # ./doc
 path = osp.dirname(path)  # ./
-path = osp.join(path, '__pkginfo__.py')  # ./__pkginfo__.py
+path = osp.join(path, 'cubicweb', '__pkginfo__.py')  # ./__pkginfo__.py
 cw = {}
-execfile(path, {}, cw)
+with open(path) as f:
+    exec(f.read(), cw)
 
 # If your extensions are in another directory, add it here. If the directory
 # is relative to the documentation root, use os.path.abspath to make it