[Tutor] Tutor Open a directory in the default file manager

Tony Cappellini cappy2112 at gmail.com
Wed May 21 01:42:26 CEST 2008


*Tim Michelsen* timmichelsen at gmx-topmail.de
<tutor%40python.org?Subject=Re%3A%20%5BTutor%5D%20Open%20a%20directory%20in%20the%20default%20file%20manager&In-Reply-To=%3Cg0skru%24lep%241%40ger.gmane.org%3E>
*Mon May 19 21:36:30 CEST 2008*

   - Previous message: [Tutor] Open a directory in the default file manager
   <http://mail.python.org/pipermail/tutor/2008-May/061820.html>
   - Next message: [Tutor] Getting started with Python
   <http://mail.python.org/pipermail/tutor/2008-May/061817.html>
   - *Messages sorted by:* [ date
]<http://mail.python.org/pipermail/tutor/2008-May/date.html#61844> [
   thread ]<http://mail.python.org/pipermail/tutor/2008-May/thread.html#61844>
[
   subject ]<http://mail.python.org/pipermail/tutor/2008-May/subject.html#61844>
[
   author ]<http://mail.python.org/pipermail/tutor/2008-May/author.html#61844>


**

>>I wasn't able to start explorer with os.startfile()

You need to use it like this
os.startfile('file.txt')

but it will launch the application associated with .TXT files- which
could be anything on Windows.
It wont launch Explorer unless you have Explorer associated with that extension.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080520/38d6a996/attachment.htm>


More information about the Tutor mailing list