shithub: choc

Download patch

ref: 74560947e2ff285718ed0ed71ae00bf1e77441e9
parent: 129406f17da942e2613490cdad1c2b24591d50f6
author: Simon Howard <fraggle@gmail.com>
date: Fri Sep 22 18:12:50 EDT 2006

Continue to build things if we fail to update chocolate_doom_icon.c 
- display a warning about missing Python Image library.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 654

--- a/src/convert-icon
+++ b/src/convert-icon
@@ -1,6 +1,6 @@
 #!/usr/bin/python
 #
-# $Id: convert-icon 297 2006-01-16 23:35:55Z fraggle $
+# $Id: convert-icon 654 2006-09-22 22:12:50Z fraggle $
 #
 # Copyright(C) 2005 Simon Howard
 #
@@ -33,10 +33,16 @@
 # Add application icon to running program
 #
 
-import Image
 import sys
 import os
 import re
+
+try:
+        import Image
+except ImportError:
+        print "WARNING: Could not update %s.  Please install the Python Image library." % sys.argv[2]
+        sys.exit(0)
+
 
 def convert_image(filename, output_filename):