Skip to content

Commit

Permalink
Fixed the method of finding data files.
Browse files Browse the repository at this point in the history
  • Loading branch information
hathawsh committed Oct 19, 2001
1 parent 41fe06e commit 1566e11
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/testDTML.py
Expand Up @@ -85,24 +85,25 @@
"""Document Template Tests
"""

__rcs_id__='$Id: testDTML.py,v 1.7 2001/10/19 15:12:26 shane Exp $'
__version__='$Revision: 1.7 $'[11:-2]
__rcs_id__='$Id: testDTML.py,v 1.8 2001/10/19 16:36:07 shane Exp $'
__version__='$Revision: 1.8 $'[11:-2]

import sys, os
import unittest

if __name__=='__main__':
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')
res = f.read()
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
Expand Down

0 comments on commit 1566e11

Please sign in to comment.