While importing the antigravity module, I came up with this Python one-liner to open a web site from the command line.
You learn something new every day. I wasn't aware that the webbrowser
module was in the standard library. I thought it was an additional module that Pythonista implemented on its own.
I would replace sys.argv[0]
with __file__
. It looks nicer and saves an import.
Comments !