Skip to content

Commit

Permalink
Quote pathname when loading the params_form from BCInterface to handl…
Browse files Browse the repository at this point in the history
…e paths with spaces
  • Loading branch information
lawhead committed Nov 11, 2024
1 parent 0c366f8 commit 6c742a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bcipy/gui/BCInterface.py
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 6c742a3

Please sign in to comment.