On Fri, 7 Jul 2000, Jack Jansen wrote: > I would suggest not putting it into urllib but in a "launch" module. [...] > in a separate module it's probably easier to extend to to various > other things you might want to launch (fileviewers, editors, etc). Hmm, i rather like this idea. Actually, i like it enough to suggest that "launch" would be a good interface to external applications -- launch.filebrowser("/home") launch.webbrowser("http://www.python.org/", newwindow=1) launch.mailreader() launch.mailcomposer("python-dev@python.org", subject="Spam") launch.textviewer("README") launch.texteditor("spam.py") launch.shell("/usr") launch.remoteshell("unseen.python.org", port=23) On Unix this would take advantage of (and formalize) the PAGER, EDITOR, BROWSER, etc. environment variables; on Windows they could look at registry settings, and for Mac, they could use IC. The webbrowser() function would be based on ESR's webbrowser.py; the others shouldn't be too hard to toss off... -- ?!ng
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4