This commit is contained in:
Niels G. W. Serup 2017-06-25 23:54:11 +02:00
parent d700ec156a
commit 71cf3d26b6
1 changed files with 1 additions and 1 deletions

View File

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