mirror of https://github.com/m-labs/artiq.git
korad_ka3005p: use ProactorEventLoop on windows
This commit is contained in:
parent
d55f2bda86
commit
161025e7df
|
@ -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.")
|
||||
|
|
Loading…
Reference in New Issue