'command': self.command + (etc)you need to add quotation marks to each of them so that they read
'command': self.command + ' \"' + os.path.splitext(os.path.basename(f))[0] + '\"'
'command': self.command + ' \"' + os.path.splitext(os.path.basename(f))[0] + os.path.splitext(os.path.basename(f))[1] + '\"'
and
'command': self.command + ' \"' + self.roms + f +'\"'
It looks like you're new here. If you want to get involved, click one of these buttons!