summaryrefslogtreecommitdiff
path: root/graphics/threeDS/files/patch-threeDS.py
blob: a593642562c2b06606c763b9e29f1c3e628a79ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

$FreeBSD$

--- threeDS.py	2001/01/18 19:26:14	1.1
+++ threeDS.py	2001/01/18 19:26:19
@@ -82,7 +82,7 @@
         self.imgfile = readStr(f)
 #        print "texture: " + self.imgfile
         try: 
-          from Imaging import Image
+          from PIL import Image
         except: 
           print 'Can\'t load texture without PIL!!'
           continue
@@ -370,7 +370,8 @@
 
   def __init__(self, filename):
     (path, filename) = os.path.split(filename)
-    os.chdir(path)
+    if path != '':
+      os.chdir(path)
     f = open(filename, "rb")
     if f is None:
       print "error loading " + str(filename) + "."