anyone knows how to launch an application, for example, a .exe, in mac??

this code works for me in ubuntu, i tried it in mac but its not working:

os.system('gnome-open ' + path)

This link says:

Simply put, the command

gnome-open
opens the item specified by the url with the preferred GNOME app for that file/mime-type.

In a sense, this command resembles the universal “open” command on Mac OSX.

So Mac is supposed to have open command

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.