diff options
Diffstat (limited to 'view_functions.py')
-rw-r--r-- | view_functions.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/view_functions.py b/view_functions.py index 4163c2e..b2e0720 100644 --- a/view_functions.py +++ b/view_functions.py @@ -81,3 +81,12 @@ def is_hidden_path(path): if d.startswith('.'): return True return False + + +def load_description(parent_dir): + description = None + description_file = parent_dir + '/' + siteconfig.DESC_FILE + if os.path.isfile(description_file): + with open(description_file, "r") as f: + description = f.read().strip() + return description |