[issue3177] Add shutil.open

Éric Araujo report at bugs.python.org
Fri Jul 15 17:13:44 CEST 2011


Éric Araujo <merwok at netwok.org> added the comment:

> as long as it's implemented and it's in the standard library, and
> people don't have to use subprocess to run open or xdg-open themselves
> as I currently do.

This new function would call os.startfile on Windows, xdg-open where applicable, and open on Mac OS X (using a subprocess for these last two).

I found the python-ideas thread: http://mail.python.org/pipermail/python-ideas/2011-July/010674.html
There was only limited support.

----------
dependencies: +Finding programs in PATH, adding shutil.which
title: implement os.startfile on posix and MacOSX -> Add shutil.open

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3177>
_______________________________________


More information about the Python-bugs-list mailing list