def pack(self): output = raw_input("output file name? ") pattern = raw_input("files to pack? ") pack2.pack_all(output, glob(pattern))
def pack(): output = raw_input("output file name? ") pattern = raw_input("files to pack? ") # expand filenames pack2.pack_all(output, glob(pattern)) # call as a function