Come on.
This commit is contained in:
parent
d700ec156a
commit
71cf3d26b6
|
@ -42,7 +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)
|
shutil.rmtree(site_new_dir, ignore_errors=True)
|
||||||
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)
|
||||||
|
|
Loading…
Reference in New Issue