[Python-ideas] Anyone working on a platform-agnostic os.startfile()

Chris Rebert pyideas at rebertia.com
Mon Apr 23 07:57:30 CEST 2012

On Sun, Apr 22, 2012 at 10:21 PM, Hobson Lane <hobsonlane at gmail.com> wrote:
> There is significant interest in a cross-platform
> file-launcher.[1][2][3][4]  The ideal implementation would be
> an operating-system-agnostic interface that launches a file for editing or
> viewing, similar to the way os.startfile() works for Windows, but
> generalized to allow caller-specification of view vs. edit preference and
> support all registered os.name operating systems, not just 'nt'.

There is an existing open bug that requests such a feature:
"Add shutil.open": http://bugs.python.org/issue3177


More information about the Python-ideas mailing list