Explicitly import handlers so freezing application can find and include the right modules.

Do not import IOU on Windows to avoid importing unknown modules like fcntl on that platform.
This commit is contained in:
Jeremy committed 2015-02-26 19:31:18 -07:00
1 parent 58d92f1584
commit 985c23a40e
4 files changed
+21 -14

No files matched your search

+7 -2
View File
@@ -15,10 +15,15 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import sys
from .vpcs import VPCS
from .virtualbox import VirtualBox
from .dynamips import Dynamips
from .iou import IOU
from .qemu import Qemu
MODULES = [VPCS, VirtualBox, Dynamips, IOU, Qemu]
MODULES = [VPCS, VirtualBox, Dynamips, Qemu]
if sys.platform.startswith("linux"):
# IOU runs only on Linux
from .iou import IOU
MODULES.append(IOU)