[Zope-Checkins] CVS: Zope2 - ImageFile.py:1.12.4.1
Brian Lloyd
brian@digicool.com
Fri, 16 Mar 2001 11:35:31 -0500 (EST)
Update of /cvs-repository/Zope2/lib/python/App
In directory korak:/home/brian/temp/zope-23-branch/lib/python/App
Modified Files:
Tag: zope-2_3-branch
ImageFile.py
Log Message:
fixed ImageFile to use os.path.join
--- Updated File ImageFile.py in package Zope2 --
--- ImageFile.py 2001/01/09 21:12:21 1.12
+++ ImageFile.py 2001/03/16 16:35:31 1.12.4.1
@@ -94,7 +94,7 @@
from time import time
from os import stat
import Acquisition
-import string
+import string, os
class ImageFile(Acquisition.Explicit):
@@ -104,7 +104,7 @@
if _prefix is None: _prefix=SOFTWARE_HOME
elif type(_prefix) is not type(''):
_prefix=package_home(_prefix)
- path='%s/%s' % (_prefix, path)
+ path = os.path.join(_prefix, path)
self.path=path
file=open(path, 'rb')