Extracting files from an ISO image?

Rob Williscroft rtw at freenet.co.uk
Wed Jan 2 20:07:00 CET 2008

Ant wrote in news:34a84caa-5387-40a2-a808-
5e7bd325023e at w47g2000hsa.googlegroups.com in comp.lang.python:


> So I have two questions really:
> 1) Is there a module out there for extracting files from an ISO?

There are command line programs that can do this:


This (with isoinfo.exe from the above) will list all files in an 
iso image file:

  CD = <path-to-iso>
  import subprocess

  subprocess.call( [ "isoinfo.exe", '-f', '-i', CD ] )

isoinfo.exe also has a switch to extract a file to stdout

One problem you may have is daemon tools will mount cd images that
aren't iso images, where as isoinfo appears to handle only genuine
iso file systems.


More information about the Python-list mailing list