pymel.core.system.launch

launch(*args, **kwargs)

Launch the appropriate application to open the document, web page or directory specified.

Flags:

Long Name / Short Name Argument Types Properties
directory / dir unicode ../../../_images/create.gif
  A directory.
movie / mov unicode ../../../_images/create.gif
  A movie file. The only acceptable movie file formats are MPEG, Quicktime, and Windows Media file. The file’s name must end with .mpg, .mpeg, .mp4, .wmv, .mov, or .qt.
pdfFile / pdf unicode ../../../_images/create.gif
  A PDF (Portable Document Format) document. The file’s name must end with .pdf.
webPage / web unicode ../../../_images/create.gif
  A web page. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.launch

Example:

import pymel.core as pm

#launch a web browser to open webpage http://www.autodesk.com
pm.launch(web="http://www.autodesk.com")
# Result: u'http://www.autodesk.com' #