From 84b07607adfd42365137b238ccdabe5557c0aef1 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 24 Aug 2015 20:20:33 +0800 Subject: [PATCH] gui: do not attempt moninj on windows --- artiq/frontend/artiq_gui.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/artiq/frontend/artiq_gui.py b/artiq/frontend/artiq_gui.py index b33e19c43..3811ce6b2 100755 --- a/artiq/frontend/artiq_gui.py +++ b/artiq/frontend/artiq_gui.py @@ -98,18 +98,22 @@ def main(): args.server, args.port_notify)) atexit.register(lambda: loop.run_until_complete(d_results.sub_close())) - d_ttl_dds = MonInj() - loop.run_until_complete(d_ttl_dds.start(args.server, args.port_notify)) - atexit.register(lambda: loop.run_until_complete(d_ttl_dds.stop())) + if os.name != "nt": + d_ttl_dds = MonInj() + loop.run_until_complete(d_ttl_dds.start(args.server, args.port_notify)) + atexit.register(lambda: loop.run_until_complete(d_ttl_dds.stop())) d_params = ParametersDock() loop.run_until_complete(d_params.sub_connect( args.server, args.port_notify)) atexit.register(lambda: loop.run_until_complete(d_params.sub_close())) - area.addDock(d_ttl_dds.dds_dock, "top") - area.addDock(d_ttl_dds.ttl_dock, "above", d_ttl_dds.dds_dock) - area.addDock(d_results, "above", d_ttl_dds.ttl_dock) + if os.name != "nt": + area.addDock(d_ttl_dds.dds_dock, "top") + area.addDock(d_ttl_dds.ttl_dock, "above", d_ttl_dds.dds_dock) + area.addDock(d_results, "above", d_ttl_dds.ttl_dock) + else: + area.addDock(d_results, "top") area.addDock(d_params, "above", d_results) area.addDock(d_explorer, "above", d_params)