diff --git a/invesalius/control.py b/invesalius/control.py index d142e1d..f288077 100644 --- a/invesalius/control.py +++ b/invesalius/control.py @@ -872,13 +872,11 @@ class Controller(): def OnOpenOtherFiles(self, filepath): filepath = utils.decode(filepath, const.FS_ENCODE) if not(filepath) == None: - name = filepath.rpartition('\\')[-1].split('.') - + name = os.path.basename(filepath).split(".")[0] group = oth.ReadOthers(filepath) - if group: matrix, matrix_filename = self.OpenOtherFiles(group) - self.CreateOtherProject(str(name[0]), matrix, matrix_filename) + self.CreateOtherProject(name, matrix, matrix_filename) self.LoadProject() Publisher.sendMessage("Enable state project", state=True) else: -- libgit2 0.21.2