From ac8ef535a24bd9418f52c27499e143b00844042d Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 4 Apr 2011 16:15:48 +0000 Subject: Avoid pyc file from running Sphinx --- doc/conf.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc/conf.py') diff --git a/doc/conf.py b/doc/conf.py index c3f8677fa..65c4c62ed 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -15,6 +15,10 @@ import sys, os sys.path.insert(0, os.pardir) +# Avoid useless botan_version.pyc (Python 2.6 or higher) +if 'dont_write_bytecode' in sys.__dict__: + sys.dont_write_bytecode = True + import botan_version # If extensions (or modules to document with autodoc) are in another directory, -- cgit v1.2.3