Commit 8f03a7a6 authored by Jérome Perrin's avatar Jérome Perrin

Two differents types of .cvsignore were generated, fix previous commit.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10090 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 947e849b
...@@ -645,13 +645,14 @@ class ConstraintTemplate(Constraint): ...@@ -645,13 +645,14 @@ class ConstraintTemplate(Constraint):
f = open(init, 'w') f = open(init, 'w')
f.close() f.close()
# For convenience, make .cvsignore. # For convenience, make .cvsignore.
cvsignore = os.path.join(path, '.cvsignore') if generate_cvsignore:
if not os.path.exists(cvsignore): cvsignore = os.path.join(path, '.cvsignore')
f = open(cvsignore, 'w') if not os.path.exists(cvsignore):
try: f = open(cvsignore, 'w')
f.write('*.pyc' + os.linesep) try:
finally: f.write('*.pyc' + os.linesep)
f.close() finally:
f.close()
# Create a Permissions module for this Product. # Create a Permissions module for this Product.
permissions = os.path.join(base_path, 'Permissions.py') permissions = os.path.join(base_path, 'Permissions.py')
......
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