Fix by aggressiveness.

This commit is contained in:
Niels G. W. Serup 2017-06-25 23:51:31 +02:00
parent 3ce4a393d1
commit d700ec156a
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ def thumbnail_url(link):
def setup_directory_structure(settings, base_dir, template_dir): def setup_directory_structure(settings, base_dir, template_dir):
site_new_dir = os.path.join(base_dir, 'site-new') site_new_dir = os.path.join(base_dir, 'site-new')
shutil.rmtree(site_new_dir)
os.mkdir(site_new_dir) os.mkdir(site_new_dir)
extern_dir_site = os.path.join(site_new_dir, 'extern') extern_dir_site = os.path.join(site_new_dir, 'extern')
os.symlink(os.path.join('..', 'extern'), extern_dir_site) os.symlink(os.path.join('..', 'extern'), extern_dir_site)