scribus/scribus-pillow.patch

23 lines
770 B
Diff
Raw Normal View History

2013-01-30 09:10:30 +00:00
Index: scribus-1.4.2/scribus/plugins/scriptplugin/scripts/FontSample.py
===================================================================
--- scribus-1.4.2.orig/scribus/plugins/scriptplugin/scripts/FontSample.py
+++ scribus-1.4.2/scribus/plugins/scriptplugin/scripts/FontSample.py
@@ -154,7 +154,7 @@ if not os.path.exists(CONFIG_PATH):
try:
- import Image
+ from PIL import Image
except ImportError,err:
print 'You need to install Python Imaging Library (PIL).'
print 'If using gentoo then you need to emerge /dev-python/imaging'
@@ -164,7 +164,7 @@ except ImportError,err:
try:
- import ImageTk
+ from PIL import ImageTk
except ImportError,err:
print 'Module ImageTk not found, font preview disabled'
showPreviewPanel = 0