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
2015-02-26 19:31:18 -07:00
parent 58d92f1584
commit 985c23a40e
4 changed files with 21 additions and 14 deletions

View File

@ -34,8 +34,8 @@ from .config import Config
from .modules import MODULES
from .modules.port_manager import PortManager
# TODO: get rid of * have something generic to automatically import handlers so the routes can be found
from gns3server.handlers import *
# do not delete this import
import gns3server.handlers
import logging
log = logging.getLogger(__name__)