Skip to content

Commit

Permalink
Merge pull request BSVino#21 from linkmauve/htmlmin-optional
Browse files Browse the repository at this point in the history
Make htmlmin optional, as in imported only when doing a full build
  • Loading branch information
BSVino committed Jun 5, 2015
2 parents 0b802a1 + 569bc2f commit c516b42
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 c516b42

Please sign in to comment.