Show More
@@ -41,7 +41,8 b' class ServePostProcessor(PostProcessorBase):' | |||||
41 |
|
41 | |||
42 | try: |
|
42 | try: | |
43 | dirname, filename = os.path.split(input) |
|
43 | dirname, filename = os.path.split(input) | |
44 |
|
|
44 | if dirname: | |
|
45 | os.chdir(dirname) | |||
45 | httpd = HTTPServer(('127.0.0.1', 8000), SimpleHTTPRequestHandler) |
|
46 | httpd = HTTPServer(('127.0.0.1', 8000), SimpleHTTPRequestHandler) | |
46 | sa = httpd.socket.getsockname() |
|
47 | sa = httpd.socket.getsockname() | |
47 | url = "http://" + sa[0] + ":" + str(sa[1]) + "/" + filename |
|
48 | url = "http://" + sa[0] + ":" + str(sa[1]) + "/" + filename |
General Comments 0
You need to be logged in to leave comments.
Login now