1
0
mirror of https://github.com/venthur/blag.git synced 2025-11-25 20:52:43 +00:00

Improved the default theme.

Closes: #48
This commit is contained in:
Bastian Venthur
2023-06-13 16:29:44 +02:00
parent e1b1ebde32
commit fe268516e3
18 changed files with 515 additions and 43 deletions

View File

@@ -60,14 +60,13 @@ author = a. u. thor
"""
with TemporaryDirectory() as dir:
for d in 'content', 'build', 'static':
os.mkdir(f'{dir}/{d}')
os.mkdir(f'{dir}/build')
with open(f'{dir}/config.ini', 'w') as fh:
fh.write(config)
# change directory
old_cwd = os.getcwd()
os.chdir(dir)
quickstart.copy_templates()
quickstart.copy_default_theme()
yield dir
# and change back afterwards
os.chdir(old_cwd)