Skip to content

Commit 54f6008

Browse files
author
Jacob Pennington
committed
Fixed GUI bug with handling whitespace in filenames
1 parent 00a0026 commit 54f6008

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

kilosort/gui/settings_box.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,11 +496,13 @@ def on_results_directory_changed(self):
496496

497497
def on_data_file_path_changed(self):
498498
self.path_check = None
499-
text = self.data_file_path_input.text()[1:-1]
499+
text = self.data_file_path_input.text()
500+
#text = self.data_file_path_input.text()[1:-1]
500501
# Remove whitespace and single or double quotes
501-
file_string = ''.join(text.split()).replace("'","").replace('"','')
502+
#file_string = ''.join(text.split()).replace("'","").replace('"','')
502503
# Get it back in list form
503-
file_list = file_string.split(',')
504+
#file_list = file_string.split(',')
505+
file_list = ast.literal_eval(text)
504506
data_paths = [Path(f) for f in file_list]
505507

506508
if self.check_valid_binary_path(data_paths):

0 commit comments

Comments
 (0)