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.
Interactive Form Example
-
@onionradish Agreed, bottle is pretty nice, and I plan to add documentation for it.
I wouldn't recommend using
os.name
for platform detection, it'll also be'posix'
on a Mac. The most pythonic way to do this would probably be to just catch the exception:try: webbrowser.open('http://localhost:8080', stop_when_done=True) except TypeError: webbrowser.open('http://localhost:8080')
You could also use
platform.machine
. -
That's even better -- I updated my code and learned something. Thanks!