Commit 6013bbaa authored by Kevin Deldycke's avatar Kevin Deldycke

Check file existence

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7041 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 48f29cae
......@@ -363,7 +363,8 @@ def removeLocalPropertySheet(class_id):
instance_home = getConfiguration().instancehome
path = os.path.join(instance_home, "PropertySheet")
path = os.path.join(path, "%s.py" % class_id)
os.remove(path)
if os.path.exists(path):
os.remove(path)
def readLocalPropertySheet(class_id):
instance_home = getConfiguration().instancehome
......
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