UtilitiesPython2/PySideImporter.py

Sun, 29 Jan 2012 17:59:34 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 29 Jan 2012 17:59:34 +0100
changeset 1586
b3e34806b734
parent 1509
c0b5e693b0eb
child 2302
f29e9405c851
permissions
-rw-r--r--

Extended the web page context menu by several entries to send links or the selected text, handling the clicked frame, translate the selected text with Google Translate and search it in Wictionary.

# -*- coding: utf-8 -*-

# Copyright (c) 2011 - 2012 Detlev Offenbach <detlev@die-offenbachs.de>
#

"""
Module to check for the presence of PySide by importing it.
"""

import sys

if __name__ == "__main__":
    try:
        import PySide       # __IGNORE_EXCEPTION__ __IGNORE_WARNING__
        ret = 0
    except ImportError:
        ret = 1
    
    sys.exit(ret)
    
#
# eflag: FileType = Python2

eric ide

mercurial