def extract_comic(path_to_comic_file):
 tdir = PersistentTemporaryDirectory(suffix='_comic_extract')
 if (not isinstance(tdir, unicode)):
  tdir = tdir.decode(filesystem_encoding)
 extract(path_to_comic_file, tdir)
 for x in walk(tdir):
  bn = os.path.basename(x)
  nbn = bn.replace('#', '_')
  if (nbn != bn):
   os.rename(x, os.path.join(os.path.dirname(x), nbn))
 return tdir

def extract_comic ( path_to_comic_file ) : tdir = PersistentTemporaryDirectory ( suffix = '_comic_extract' ) if ( not isinstance ( tdir , unicode ) ) : tdir = tdir . decode ( filesystem_encoding ) extract ( path_to_comic_file , tdir ) for x in walk ( tdir ) : bn = os . path . basename ( x ) nbn = bn . replace ( '#' , '_' ) if ( nbn != bn ) : os . rename ( x , os . path . join ( os . path . dirname ( x ) , nbn ) ) return tdir
un-archive the comic file .