equal
deleted
inserted
replaced
74 if not dest: |
74 if not dest: |
75 dest = config['staticdir-path'] |
75 dest = config['staticdir-path'] |
76 if not dest: |
76 if not dest: |
77 dest = osp.join(config.appdatahome, 'data') |
77 dest = osp.join(config.appdatahome, 'data') |
78 if osp.exists(dest): |
78 if osp.exists(dest): |
79 if (not ask_clean or |
79 if config.verbosity and (not ask_clean or |
80 not (config.verbosity and |
80 not (config.verbosity and |
81 ASK.confirm('Remove existing data directory %s?' % dest))): |
81 ASK.confirm('Remove existing data directory %s?' % dest))): |
82 raise ExecutionError('Directory %s already exists. ' |
82 raise ExecutionError('Directory %s already exists. ' |
83 'Remove it first.' % dest) |
83 'Remove it first.' % dest) |
84 rmtreecontent(dest) |
84 rmtreecontent(dest) |