[Zope3-checkins] SVN: Zope3/trunk/src/zope/wfmc/ Changed path
creation to use os.path.join.
Benji York
benji at zope.com
Wed Jan 19 17:17:17 EST 2005
Log message for revision 28878:
Changed path creation to use os.path.join.
Changed:
U Zope3/trunk/src/zope/wfmc/tests.py
U Zope3/trunk/src/zope/wfmc/xpdl.txt
-=-
Modified: Zope3/trunk/src/zope/wfmc/tests.py
===================================================================
--- Zope3/trunk/src/zope/wfmc/tests.py 2005-01-19 21:34:00 UTC (rev 28877)
+++ Zope3/trunk/src/zope/wfmc/tests.py 2005-01-19 22:17:16 UTC (rev 28878)
@@ -26,6 +26,7 @@
def setUp(test):
test.globs['this_directory'] = os.path.split(__file__)[0]
+ test.globs['os'] = os
placelesssetup.setUp(test)
def test_suite():
Modified: Zope3/trunk/src/zope/wfmc/xpdl.txt
===================================================================
--- Zope3/trunk/src/zope/wfmc/xpdl.txt 2005-01-19 21:34:00 UTC (rev 28877)
+++ Zope3/trunk/src/zope/wfmc/xpdl.txt 2005-01-19 22:17:16 UTC (rev 28878)
@@ -11,7 +11,8 @@
"README.txt" file. We can read it using the xpdl module:
>>> from zope.wfmc import xpdl
- >>> package = xpdl.read(open(this_directory+'/publication.xpdl'))
+ >>> package = xpdl.read(open(os.path.join(this_directory,
+ ... 'publication.xpdl')))
This package contains a single definition:
More information about the Zope3-Checkins
mailing list