Sublime Forum

Run command pallet from current directory?

#1

Would be great to set the command pallet to run from the current directory by default.

Here is what I currently do:

[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]

(would be general enough to include in base rather than a plugin)

0 Likes