http_server_runner

This script takes two arguements: a path to where it should open the http-server and the desired port. If no port is specified, http-server will pick. If the port selected is in use, you will see a long javascript error. When the script is terminated, it kills the http-server that it has created

Usage example:

python http_server_runner.py /path/to/dir 8080

Module Contents

Functions

is_int(value)

Attributes

DIR_IDX

PORT_IDX

args

http_server_runner.is_int(value)
http_server_runner.DIR_IDX = 1
http_server_runner.PORT_IDX = 2
http_server_runner.args