Browse Source

gyp: switch json for pprint when generating config

v0.7.4-release
jbergstroem 13 years ago
committed by Ben Noordhuis
parent
commit
45605c9b39
  1. 5
      configure

5
configure

@ -2,13 +2,12 @@
import optparse import optparse
import os import os
import json import pprint
import subprocess import subprocess
import sys import sys
root_dir = os.path.dirname(__file__) root_dir = os.path.dirname(__file__)
sys.path.insert(0, os.path.join(root_dir, 'deps', 'v8', 'tools')) sys.path.insert(0, os.path.join(root_dir, 'deps', 'v8', 'tools'))
import utils # GuessArchitecture
# parse our options # parse our options
parser = optparse.OptionParser() parser = optparse.OptionParser()
@ -262,7 +261,7 @@ print "creating ", fn
f = open(fn, 'w+') f = open(fn, 'w+')
f.write("# Do not edit. Generated by the configure script.\n") f.write("# Do not edit. Generated by the configure script.\n")
json.dump(output, f, indent=2, skipkeys=True) pprint.pprint(output, stream=f, indent=2)
f.write("\n") f.write("\n")
f.close() f.close()

Loading…
Cancel
Save