From 569bc2fb100a53a7e8ea49a70d46df19ec31f305 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 5 Jun 2015 12:42:37 +0100 Subject: [PATCH] Make htmlmin optional, as in imported only when doing a full build. Removes the need to add its submodule when only a fast build is requested. --- compile.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/compile.py b/compile.py index 275ed5e3..8640a7a6 100644 --- a/compile.py +++ b/compile.py @@ -10,9 +10,6 @@ import subprocess import platform -sys.path.append("htmlmin") -import htmlmin - parser = argparse.ArgumentParser(description="Compile OpenGL documentation, generate a static webpage.") parser.add_argument('--full', dest='buildmode', action='store_const', const='full', default='fast', help='Full build (Default: fast build)') @@ -21,6 +18,8 @@ if args.buildmode == 'full': print "FULL BUILD" + sys.path.append("htmlmin") + import htmlmin else: print "FAST BUILD"