~dpm/qreator/snap

« back to all changes in this revision

Viewing changes to qreator/qrcodes/QRCodeSoftwareCenterApp.py

  • Committer: David Planella
  • Date: 2013-05-20 10:29:25 UTC
  • mfrom: (168.1.2 qreator_vendors)
  • Revision ID: david.planella@ubuntu.com-20130520102925-6vwex5zjm7gzng6y
Added vendor check support for plugins

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# with this program.  If not, see <http://www.gnu.org/licenses/>.
15
15
### END LICENSE
16
16
 
 
17
from qreator_lib import VendorError
 
18
import platform
 
19
 
 
20
 
 
21
# This is a vendor-specific plugin
 
22
if not platform.linux_distribution()[0] == "Ubuntu":
 
23
    raise VendorError
 
24
 
17
25
from qreator_lib.i18n import _
18
26
from QRCodeType import QRCodeType
19
27
from QRCodeSoftwareCenterAppGtk import QRCodeSoftwareCenterAppGtk