summaryrefslogtreecommitdiff
path: root/paste/app_setup.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-06-10 22:37:44 +0000
committerianb <devnull@localhost>2005-06-10 22:37:44 +0000
commit62f2e58dcbc34903de81b7eebf466fd48aa30676 (patch)
treeff08060b0a89f7775b3abf8695dfcb6393ca44ed /paste/app_setup.py
parent961effc787d7228a5f6538f9f9c8ec7bef5e9cc3 (diff)
downloadpaste-62f2e58dcbc34903de81b7eebf466fd48aa30676.tar.gz
Make copy_dir respect simulate (closes #7)
Diffstat (limited to 'paste/app_setup.py')
-rw-r--r--paste/app_setup.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/paste/app_setup.py b/paste/app_setup.py
index 0ae6262..bdbdded 100644
--- a/paste/app_setup.py
+++ b/paste/app_setup.py
@@ -708,9 +708,10 @@ def copy_dir(source, dest, vars, verbosity, simulate):
content = _substitute_content(content, vars)
if verbosity:
print 'Copying %s to %s' % (full, dest_full)
- f = open(dest_full, 'wb')
- f.write(content)
- f.close()
+ if not simulate:
+ f = open(dest_full, 'wb')
+ f.write(content)
+ f.close()
def _substitute_filename(fn, vars):
for var, value in vars.items():