This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: mimetypes.py does not find mime.types on Mac OS X
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, shh42
Priority: normal Keywords:

Created on 2005-05-14 16:57 by shh42, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg25317 - (view) Author: Stefan H. Holek (shh42) Date: 2005-05-14 16:57
Python 2.3 and 2.4 (dunno about 2.5)

The mimetypes.py library does not find the mime.types files on Mac 
OS X. They are in:

/etc/cups/mime.types and
/etc/httpd/mime.types respectively.

As a result not all mimetypes are recognized by Python. The one in /
etc/cups is fairly limited, so including the Apache one as well seems 
like a good idea.
msg25318 - (view) Author: Stefan H. Holek (shh42) Date: 2005-05-14 16:59
Logged In: YES 
user_id=864871

This is a with a standalone build of Python, I am not talking about the 
Python shipping with the system.
msg25319 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-06-14 08:42
Logged In: YES 
user_id=849994

Added some mime.types locations in rev. 46954.
History
Date User Action Args
2022-04-11 14:56:11adminsetgithub: 41984
2005-05-14 16:57:28shh42create