workaround for buggy 2.2 mac support

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@436 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
jvr 2003-08-28 18:23:43 +00:00
parent 3430abf7ab
commit 1cff4cb190

View File

@ -42,13 +42,19 @@ Dumping 'prep' table...
""" """
# #
# $Id: __init__.py,v 1.42 2003-08-26 19:00:38 jvr Exp $ # $Id: __init__.py,v 1.43 2003-08-28 18:23:43 jvr Exp $
# #
import sys import sys
import os import os
import string import string
haveMacSupport = sys.platform in ("mac", "darwin")
haveMacSupport = 0
if sys.platform == "mac":
haveMacSupport = 1
elif sys.platform == "darwin" and sys.version_info[:3] != (2, 2, 0):
# Python 2.2's Mac support is broken, so don't enable it there.
haveMacSupport = 1
class TTLibError(Exception): pass class TTLibError(Exception): pass