0

In the past I have used the following command to open the system default web browser pointing to a url in python, and it works!

import webbrowser
new = 2
url = http://www.google.com
webbrowser.open(url, new=new)

Now I would like to do the same thing for the filemanager: open it, pointing to a certain location in the user own computer.

Is there any command that opens the Windows Explorer in Windows, the default file manager (eg: Nautilus) in Linux, or the file manager of Mac OSX ? I need a OS independent command or a proper way to write one.

eri0o
  • 1,911
  • 3
  • 23
  • 37

0 Answers0