Commit b274b211 authored by cduvall@chromium.org's avatar cduvall@chromium.org

Extensions Docs Server: preview.py fixes

preview.py now runs build_server.py before running and cleans itself up
afterwards.

BUG=140308

Review URL: https://chromiumcodereview.appspot.com/10829149

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149683 0039d316-1c4b-4281-b951-d872f2087c98
parent 5c7ce22d
......@@ -14,10 +14,15 @@
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
import optparse
import os
import shutil
from StringIO import StringIO
import sys
import urlparse
import build_server
# Copy all the files necessary to run the server. These are cleaned up when the
# server quits.
build_server.main()
from handler import Handler
class Response(object):
......@@ -71,3 +76,4 @@ if __name__ == '__main__':
server.serve_forever()
finally:
server.socket.close()
shutil.rmtree(os.path.join(sys.argv[0].rsplit(os.sep, 1)[0], 'third_party'))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment