mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Merge remote-tracking branch 'origin/asyncio' into asyncio
This commit is contained in:
commit
b55719186e
77 files changed
+319
-574
No files matched your search
@@ -15,6 +15,8 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
||||
from gns3server.handlers.api.version_handler import VersionHandler
|
||||
from gns3server.handlers.api.network_handler import NetworkHandler
|
||||
from gns3server.handlers.api.project_handler import ProjectHandler
|
||||
@@ -25,5 +27,5 @@ from gns3server.handlers.api.virtualbox_handler import VirtualBoxHandler
|
||||
from gns3server.handlers.api.vpcs_handler import VPCSHandler
|
||||
from gns3server.handlers.upload_handler import UploadHandler
|
||||
|
||||
if sys.platform.startswith("linux"):
|
||||
if sys.platform.startswith("linux") or hasattr(sys, "_called_from_test"):
|
||||
from gns3server.handlers.api.iou_handler import IOUHandler
|
||||
@@ -23,7 +23,7 @@ from .qemu import Qemu
|
||||
|
||||
MODULES = [VPCS, VirtualBox, Dynamips, Qemu]
|
||||
|
||||
if sys.platform.startswith("linux"):
|
||||
if sys.platform.startswith("linux") or hasattr(sys, "_called_from_test"):
|
||||
# IOU runs only on Linux
|
||||
from .iou import IOU
|
||||
MODULES.append(IOU)
|
||||
Reference in new issue
Block a user