[Zope-Checkins] CVS: Zope2 - testUnKeywordIndex.py:1.1.2.4

Jim Fulton jim@digiciool.com
Mon, 12 Mar 2001 11:53:20 -0500 (EST)


Update of /cvs-repository/Zope2/lib/python/SearchIndex/tests
In directory korak:/tmp/cvs-serv27705

Modified Files:
      Tag: Catalog-BTrees-Integration
	testUnKeywordIndex.py 
Log Message:
improved path handling.



--- Updated File testUnKeywordIndex.py in package test --
--- testUnKeywordIndex.py	2001/03/01 18:35:48	1.1.2.3
+++ testUnKeywordIndex.py	2001/03/12 16:53:19	1.1.2.4
@@ -84,10 +84,10 @@
 ##############################################################################
 import os, sys
         
+sys.path.insert(0, os.getcwd())
 try: import unittest
 except:
-    import os
-    sys.path.insert(0, os.getcwd())
+    sys.path[0]=os.path.join(sys.path[0],'..','..')
     import unittest
 
 import ZODB



--- Updated File testUnKeywordIndex.py in package Zope2 --
--- testUnKeywordIndex.py	2001/03/01 18:35:48	1.1.2.3
+++ testUnKeywordIndex.py	2001/03/12 16:53:19	1.1.2.4
@@ -84,10 +84,10 @@
 ##############################################################################
 import os, sys
         
+sys.path.insert(0, os.getcwd())
 try: import unittest
 except:
-    import os
-    sys.path.insert(0, os.getcwd())
+    sys.path[0]=os.path.join(sys.path[0],'..','..')
     import unittest
 
 import ZODB