def open(target):
    """Opens the target file or URL in the default application.

    **Attribution**:
    Written by user4815162342 and originally posted on
    `Stack Overflow <http://stackoverflow.com/a/17317468>`_.

    **Examples**:
    ::
        auxly.open("myfile.txt")
        auxly.open("https://www.github.com/")
    """
    if sys.platform == "win32":
        os.startfile(target)
    else:
        opener = "open" if sys.platform == "darwin" else "xdg-open"
        subprocess.call([opener, target])
def open ( target ) : if sys . platform == "win32" : os . startfile ( target ) else : opener = "open" if sys . platform == "darwin" else "xdg-open" subprocess . call ( [ opener , target ] )
Opens the target file or URL in the default application.

    **Attribution**:
    Written by user4815162342 and originally posted on
    `Stack Overflow <http://stackoverflow.com/a/17317468>`_.

    **Examples**:
    ::
        auxly.open("myfile.txt")
        auxly.open("https://www.github.com/")