Skip to content

Commit

Permalink
Make htmlmin optional, as in imported only when doing a full build.
Browse files Browse the repository at this point in the history
Removes the need to add its submodule when only a fast build is requested.
  • Loading branch information
linkmauve committed Jun 5, 2015
1 parent 0b802a1 commit 569bc2f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)')
Expand All @@ -21,6 +18,8 @@

if args.buildmode == 'full':
print "FULL BUILD"
sys.path.append("htmlmin")
import htmlmin
else:
print "FAST BUILD"

Expand Down

0 comments on commit 569bc2f

Please sign in to comment.