I want to run an HTTP web server on my current project within Sublime Text 3, so here’s what I tried:
[code]from os import chdir; chdir(’<cur_project_dir>’);
Now to run local web-server
import http.server;import socketserver;PORT = 8001;httpd = socketserver.TCPServer(("", PORT), http.server.SimpleHTTPRequestHandler);print(“serving at port”, PORT);httpd.serve_forever()[/code]
Unfortunately it crashes Sublime Text 3047 x64 on my Windows 8 x64 machine :.