Commit ea161e49 authored by Alexandre Boeglin's avatar Alexandre Boeglin

replace os.path.lexists (>=python2.4) by os.path.islink for python2.3

compatibility


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13551 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 86fb6276
......@@ -63,13 +63,13 @@ def initializeInstanceHome(tests_framework_home,
src = os.path.join(real_instance_home, d)
dst = os.path.join(instance_home, d)
if not os.path.exists(dst):
if os.path.lexists(dst):
if os.path.islink(dst):
os.unlink(dst)
os.symlink(src, dst)
src = os.path.join(tests_framework_home, 'custom_zodb.py')
dst = os.path.join(instance_home, 'custom_zodb.py')
if not os.path.exists(dst):
if os.path.lexists(dst):
if os.path.islink(dst):
os.unlink(dst)
os.symlink(src, dst)
sys.path.append(os.path.join(zope_home, "bin"))
......
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