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