MacPython 2.2 compatibility fix.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@199 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
parent
7b31570b70
commit
25ccb9c346
@ -26,7 +26,10 @@ import re
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
if os.name == 'mac':
|
if os.name == 'mac':
|
||||||
import Res
|
try:
|
||||||
|
from Carbon import Res
|
||||||
|
except ImportError:
|
||||||
|
import Res # MacPython < 2.2
|
||||||
import macfs
|
import macfs
|
||||||
|
|
||||||
error = 't1Lib.error'
|
error = 't1Lib.error'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user