From c6cfe25e6d7ce15faf524d2b50debfe7df8d27dc Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Fri, 21 Feb 2020 07:08:51 -0800 Subject: [PATCH] Add draft and src folders to lexicon folder --- amanuensis/lexicon/manage.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/amanuensis/lexicon/manage.py b/amanuensis/lexicon/manage.py index fa62d24..5eda14c 100644 --- a/amanuensis/lexicon/manage.py +++ b/amanuensis/lexicon/manage.py @@ -54,6 +54,10 @@ def create_lexicon(name, editor): cfg['editor'] = editor.uid cfg['time']['created'] = int(time.time()) + # Create subdirectories + os.mkdir(prepend(lex_dir, 'draft')) + os.mkdir(prepend(lex_dir, 'src')) + # Update the index with the new lexicon with json_rw('lexicon', 'index.json') as index: index[name] = lid