Home Download Buy Blog Forum Support

Run command pallet from current directory?

Run command pallet from current directory?

Postby AlecTaylor on Tue Sep 17, 2013 9:58 am

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

Here is what I currently do:
Code: Select all
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()

(would be general enough to include in base rather than a plugin)
Posts: 2
Joined: Tue Sep 17, 2013 9:48 am

Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 7 guests