<gh_stars>1-10
#!/usr/bin/env python
import rospy, os
import SimpleHTTPServer

def kill():
    os.system("kill -KILL " + str(os.getpid()))

os.chdir(os.path.dirname(__file__) + "/../contents")
rospy.init_node("webserver")
rospy.on_shutdown(kill)
SimpleHTTPServer.test()

# Copyright 2016 <NAME>
# Released under the MIT License.
# To make line numbers be identical with the book, this statement is written here. Don't move it to the header.

#!/usr/bin/env python
import rospy, os
import SimpleHTTPServer

def kill():
    os.system("kill -KILL " + str(os.getpid()))

os.chdir(os.path.dirname(__file__) + "/../contents")
rospy.init_node("webserver")
rospy.on_shutdown(kill)
SimpleHTTPServer.test()

# Copyright 2016 <NAME>
# Released under the MIT License.
# To make line numbers be identical with the book, this statement is written here. Don't move it to the header.
#!/usr/bin/env python # Copyright 2016 <NAME> # Released under the MIT License. # To make line numbers be identical with the book, this statement is written here. Don't move it to the header.