1 # Copyright (c) 2011 Nicira Networks.
2 # Copyright (c) 2010 Citrix Systems, Inc.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at:
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 import os, re, struct, sys, time, types, uuid
17 from copy import deepcopy
18 from pprint import pprint
20 # Set globalForcePySide to True to use PySide instead of PyQt if both are installed
21 globalForcePySide = False
26 print('+++ OVS JSON module is required\n')
31 print('Forcing use of PySide')
33 from PyQt4.QtCore import Qt, QVariant
34 from PyQt4 import QtCore, QtGui
37 from PySide.QtCore import Qt, QVariant
38 from PySide import QtCore, QtGui
40 print('+++ This application requires either PyQt4 or PySide\n')