From 474bc7b65bac3fb5ab97436ba9ac51090243eced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Tue, 7 Aug 2018 12:57:01 +0200 Subject: [PATCH] browser: handle windows file urls for feeding h5py close #1014 --- artiq/browser/experiments.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/artiq/browser/experiments.py b/artiq/browser/experiments.py index c1a531152..da501e038 100644 --- a/artiq/browser/experiments.py +++ b/artiq/browser/experiments.py @@ -258,8 +258,9 @@ class _ExperimentDock(QtWidgets.QMdiSubWindow): def dropEvent(self, ev): for uri in ev.mimeData().urls(): if uri.scheme() == "file": - logger.debug("Loading HDF5 arguments from %s", uri.path()) - asyncio.ensure_future(self.load_hdf5_task(uri.path())) + filename = QtCore.QDir.toNativeSeparators(uri.toLocalFile()) + logger.debug("Loading HDF5 arguments from %s", filename) + asyncio.ensure_future(self.load_hdf5_task(filename)) break async def compute_arginfo(self):