code: def pack(self):
          " Pack and save file "
          pack_name = self.args.prefix + op.basename(self.path)
          pack_path = op.join(self.args.output or self.basedir, pack_name)
  
          self.out("Packing: %s" % self.path)
          self.out("Output: %s" % pack_path)
  
          if self.args.format:
              ext = self.get_ext(self.path)
              self.parsers[ext] = self.args.format
  
          out = "".join(self.merge(self.parse(self.path)))
          try:
              open(pack_path, 'w').write(out)
              self.out("Linked file saved as: '%s'." % pack_path)
          except IOError, ex:
              raise ZetaError(exf pack(self):
          " Pack and save file "
          pack_name = self.args.prefix + op.basename(self.path)
          pack_path = op.join(self.args.output or self.basedir, pack_name)
  
          self.out("Packing: %s" % self.path)
          self.out("Output: %s" % pack_path)
  
          if self.args.format:
              ext = self.get_ext(self.path)
              self.parsers[ext] = self.args.format
  
          out = "".join(self.merge(self.parse(self.path)))
          try:
              open(pack_path, 'w').write(out)
              self.out("Linked file saved as: '%s'." % pack_path)
          except IOError, ex:
              raise ZetaError(ex)
docs: Pack and save file