Commit 1b1dab7e authored by Evan Simpson's avatar Evan Simpson

Make path construction use os.path.join

parent dd9765e4
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
"""Global definitions""" """Global definitions"""
__version__='$Revision: 1.44 $'[11:-2] __version__='$Revision: 1.45 $'[11:-2]
import Acquisition, ComputedAttribute, App.PersistentExtra, os import Acquisition, ComputedAttribute, App.PersistentExtra, os
import TreeDisplay, string import TreeDisplay, string
...@@ -102,7 +102,7 @@ from App.ImageFile import ImageFile ...@@ -102,7 +102,7 @@ from App.ImageFile import ImageFile
DevelopmentMode=None DevelopmentMode=None
VersionNameName='Zope-Version' VersionNameName='Zope-Version'
data_dir = INSTANCE_HOME+'/var' data_dir = os.path.join(INSTANCE_HOME, 'var')
for n in 'Z', 'BOBO': for n in 'Z', 'BOBO':
if os.environ.has_key('%s_DEBUG_MODE' % n): if os.environ.has_key('%s_DEBUG_MODE' % n):
......
...@@ -84,9 +84,9 @@ ...@@ -84,9 +84,9 @@
############################################################################## ##############################################################################
__doc__="""Object Manager __doc__="""Object Manager
$Id: ObjectManager.py,v 1.130 2001/03/27 03:32:14 brian Exp $""" $Id: ObjectManager.py,v 1.131 2001/03/29 14:24:20 evan Exp $"""
__version__='$Revision: 1.130 $'[11:-2] __version__='$Revision: 1.131 $'[11:-2]
import App.Management, Acquisition, Globals, CopySupport, Products import App.Management, Acquisition, Globals, CopySupport, Products
import os, App.FactoryDispatcher, ts_regex, Products import os, App.FactoryDispatcher, ts_regex, Products
...@@ -519,7 +519,7 @@ class ObjectManager( ...@@ -519,7 +519,7 @@ class ObjectManager(
'inline;filename=%s.%s' % (id, suffix)) 'inline;filename=%s.%s' % (id, suffix))
return f.getvalue() return f.getvalue()
f=Globals.data_dir+'/%s.%s' % (id, suffix) f = os.path.join(CLIENT_HOME, '%s.%s' % (id, suffix))
if toxml: if toxml:
XMLExportImport.exportXML(ob._p_jar, ob._p_oid, f) XMLExportImport.exportXML(ob._p_jar, ob._p_oid, f)
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment