From 8c63637dd60bf618654f43724135c9fa2680afa5 Mon Sep 17 00:00:00 2001 From: Johannes Pohl Date: Fri, 1 Dec 2017 13:28:37 +0100 Subject: [PATCH] fix gnuradio check for windows cmd (#371) --- src/urh/dev/BackendHandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/urh/dev/BackendHandler.py b/src/urh/dev/BackendHandler.py index 3bbf2f5cd9..196a5597cd 100644 --- a/src/urh/dev/BackendHandler.py +++ b/src/urh/dev/BackendHandler.py @@ -168,7 +168,7 @@ def set_gnuradio_installed_status(self): devnull = "NUL" if os.name == "nt" else "/dev/null" if os.path.isfile(self.python2_exe) and os.access(self.python2_exe, os.X_OK): # Subprocess.call gives memory error, so we use os.system - self.gnuradio_installed = os.system(self.python2_exe + " -c 'import gnuradio' 2>" + devnull) == 0 + self.gnuradio_installed = os.system(self.python2_exe + ' -c "import gnuradio" 2>' + devnull) == 0 constants.SETTINGS.setValue("python2_exe", self.python2_exe) else: self.gnuradio_installed = False