Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Stopping SimpleHTTPServer
-
I am using SimpleHTTPServer in an Editorial workflow. This works well, except the stop button and the spinning button do not kill the workflow.
The background timeout will kill the workflow, but I am unable to do it manually.
Can anyone help?
Thanks
Martin
-
what about stopping the workflow with a raw input?
exit=raw_input("Do you want to exit?") if exit=="yes": sys.exit()
-
Thanks for the idea, but it am running the example at the end http://omz-software.com/editorial/docs/library/simplehttpserver.html
There isn't a place to put the raw_input.
I'll keep hunting for ways to stop it (it stops under pythonista, so I'm sure there is a way).
Martin
-
Two approaches to consider: