Changeset 8860 in genesis for tools/gformat.py


Ignore:
Timestamp:
Mar 1, 2011, 10:19:32 PM (14 years ago)
Author:
rick
Message:
  • Node directory is now relative to root.
  • Allow CTRL+C to close socket nicely to allow re-use of port.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r8636 r8860  
    3535 
    3636
    37 NODE_DIR = os.getcwd()
     37NODE_DIR = os.getcwd() + '/../nodes'
    3838__version__ = '$Id$'
    3939
     
    706706     
    707707      print "serving at port", PORT
    708       httpd.serve_forever()
     708      try:
     709        httpd.serve_forever()
     710      except KeyboardInterrupt:
     711        httpd.shutdown()
    709712    elif sys.argv[1] == "test":
    710713      os.environ['PATH_INFO'] = "/".join(sys.argv[2:])
Note: See TracChangeset for help on using the changeset viewer.