Example #1
0
 def _unpack(self):
     directory = self.directory_widget.text()
     if not directory:
         return
     unpacker = self.unpackers.checkedButton()
     if unpacker:
         options = self.unpacker_options.currentWidget().options()
         if options is None:
             return
         if handle_error(
                 self,
                 reprounzip.unpack(self.package_widget.text(),
                                   unpacker.text(), directory, options)):
             self.unpacked.emit(os.path.abspath(directory),
                                options.get('root'))
     else:
         error_msg(self, "No unpacker selected", 'warning')
Example #2
0
 def _unpack(self):
     directory = self.directory_widget.text()
     if not directory:
         return
     unpacker = self.unpackers.checkedButton()
     if unpacker:
         record_usage(unpacker=unpacker.text())
         options = self.unpacker_options.currentWidget().options()
         if options is None:
             return
         if handle_error(self, reprounzip.unpack(
                 self.package_widget.text(),
                 unpacker.unpacker,
                 directory,
                 options)):
             self.unpacked.emit(os.path.abspath(directory),
                                options.get('root'))
     else:
         error_msg(self, "No unpacker selected", 'warning')