diff --git a/bcipy/gui/BCInterface.py b/bcipy/gui/BCInterface.py index 3a4c7913..ae7a7892 100644 --- a/bcipy/gui/BCInterface.py +++ b/bcipy/gui/BCInterface.py @@ -1,10 +1,10 @@ +import logging import subprocess import sys -import logging from typing import List from bcipy.config import (BCIPY_ROOT, DEFAULT_PARAMETERS_PATH, - STATIC_IMAGES_PATH, PROTOCOL_LOG_FILENAME) + PROTOCOL_LOG_FILENAME, STATIC_IMAGES_PATH) from bcipy.gui.main import (AlertMessageResponse, AlertMessageType, AlertResponse, BCIGui, app, contains_special_characters, contains_whitespaces, @@ -316,7 +316,7 @@ def edit_parameters(self) -> None: return None output = subprocess.check_output( - f'python {BCIPY_ROOT}/gui/parameters/params_form.py -p {self.parameter_location}', + f'python {BCIPY_ROOT}/gui/parameters/params_form.py -p "{self.parameter_location}"', shell=True) if output: self.parameter_location = output.decode().strip()