[ZPT] CVS: Packages/TAL - markbench.py:1.2

fred@digicool.com fred@digicool.com
Fri, 15 Jun 2001 10:16:54 -0400 (EDT)


Update of /cvs-repository/Packages/TAL
In directory korak.digicool.com:/tmp/cvs-serv14849/TAL

Modified Files:
	markbench.py 
Log Message:

Be more careful about importing setpath.



--- Updated File markbench.py in package Packages/TAL --
--- markbench.py	2001/06/14 19:40:08	1.1
+++ markbench.py	2001/06/15 14:16:53	1.2
@@ -13,7 +13,10 @@
 os.environ['NO_SECURITY'] = 'true'
 
 import sys, time
-import setpath
+
+if __name__ == "__main__":
+    import setpath
+
 from DocumentTemplate.DT_HTML import HTMLFile
 from HTMLTALParser import HTMLTALParser
 from TALInterpreter import TALInterpreter