mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-02 11:09:29 +00:00
Two fixes:
- Properly import PIL module; - don't try to do os.chdir() with empty argument.
This commit is contained in:
parent
f12751a5d7
commit
a318676894
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=37306
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= threeDS
|
||||
PORTVERSION= 0.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= graphics python
|
||||
MASTER_SITES= http://www.demonseed.net/~jp/code/threeDS/
|
||||
|
||||
|
24
graphics/threeDS/files/patch-threeDS.py
Normal file
24
graphics/threeDS/files/patch-threeDS.py
Normal file
@ -0,0 +1,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) + "."
|
Loading…
x
Reference in New Issue
Block a user