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):
f = open(init, 'w')
f.close()
# For convenience, make .cvsignore.
cvsignore = os.path.join(path, '.cvsignore')
if not os.path.exists(cvsignore):
f = open(cvsignore, 'w')
try:
f.write('*.pyc' + os.linesep)
finally:
f.close()
if generate_cvsignore:
cvsignore = os.path.join(path, '.cvsignore')
if not os.path.exists(cvsignore):
f = open(cvsignore, 'w')
try:
f.write('*.pyc' + os.linesep)
finally:
f.close()
# Create a Permissions module for this Product.
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