Skip to content

Commit

Permalink
Doc conf tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jul 2, 2016
1 parent 7b6e20f commit ffca3f1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions doc/conf.py
@@ -1,6 +1,7 @@
from __future__ import absolute_import
# -*- coding: utf-8 -*-
#

from __future__ import absolute_import

# PyOpenCL documentation build configuration file, created by
# sphinx-quickstart on Fri Jun 13 00:51:19 2008.
#
Expand Down Expand Up @@ -50,7 +51,9 @@
#
# The short X.Y version.
ver_dic = {}
exec(compile(open("../pyopencl/version.py").read(), "../pyopencl/version.py", 'exec'), ver_dic)
with open("../pyopencl/version.py") as ver_file:
ver_src = ver_file.read()
exec(compile(ver_src, "../pyopencl/version.py", 'exec'), ver_dic)
version = ".".join(str(x) for x in ver_dic["VERSION"])
# The full version, including alpha/beta/rc tags.
release = ver_dic["VERSION_TEXT"]
Expand Down

0 comments on commit ffca3f1

Please sign in to comment.