[Zope-Checkins] CVS: Zope/lib/python/DocumentTemplate/tests - testDTML.py:1.8

Shane Hathaway shane@digicool.com
Fri, 19 Oct 2001 12:36:09 -0400


Update of /cvs-repository/Zope/lib/python/DocumentTemplate/tests
In directory cvs.zope.org:/tmp/cvs-serv8988

Modified Files:
	testDTML.py 
Log Message:
Fixed the method of finding data files.


=== Zope/lib/python/DocumentTemplate/tests/testDTML.py 1.7 => 1.8 ===
     here = os.curdir
 else:
-    here = os.path.split(__file__)[0]
+    from DocumentTemplate import tests
+    here = tests.__path__[0]
 
 def read_file(name):
     f = open(os.path.join(here, name), 'rb')
@@ -102,7 +103,7 @@
     f.close()
     return res
 
-from DocumentTemplate import HTML, String
+from DocumentTemplate.DT_HTML import HTML, String
 from ExtensionClass import Base
 class D:
     __allow_access_to_unprotected_subobjects__ = 1