korad_ka3005p: use ProactorEventLoop on windows

This commit is contained in:
Sebastien Bourdeauducq 2016-12-19 09:33:20 +01:00
parent d55f2bda86
commit 161025e7df
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import argparse
import logging
import sys
import asyncio
import os
from artiq.devices.korad_ka3005p.driver import KoradKA3005P
from artiq.protocols.pc_rpc import simple_server_loop
@ -33,6 +34,9 @@ def main():
args = get_argparser().parse_args()
init_logger(args)
if os.name == "nt":
asyncio.set_event_loop(asyncio.ProactorEventLoop())
if not args.simulation and args.device is None:
print("You need to specify either --simulation or -d/--device "
"argument. Use --help for more information.")