[Zope-Checkins] CVS: Zope/lib/python/Zope/Startup/tests - test_schema.py:1.5.8.3

Chris McDonough chrism@zope.com
Thu, 24 Jul 2003 16:14:19 -0400


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

Modified Files:
      Tag: Zope-2_7-branch
	test_schema.py 
Log Message:
Merge test_schema fix from HEAD.


=== Zope/lib/python/Zope/Startup/tests/test_schema.py 1.5.8.2 => 1.5.8.3 ===
--- Zope/lib/python/Zope/Startup/tests/test_schema.py:1.5.8.2	Mon Jul 21 17:09:59 2003
+++ Zope/lib/python/Zope/Startup/tests/test_schema.py	Thu Jul 24 16:14:13 2003
@@ -30,14 +30,8 @@
 TEMPNAME = tempfile.mktemp()
 TEMPPRODUCTS = os.path.join(TEMPNAME, "Products")
 
-try:
-    __file__
-except NameError:
-    import sys
-    __file__ = sys.argv[0]
-
 def getSchema():
-    startup = os.path.dirname(os.path.dirname(__file__))
+    startup = os.path.dirname(os.path.realpath(Zope.Startup.__file__))
     schemafile = os.path.join(startup, 'zopeschema.xml')
     return ZConfig.loadSchema(schemafile)