From 22df72569b7b36e5649ee89e40723bbd7dd9f56c Mon Sep 17 00:00:00 2001 From: Homer Date: Mon, 9 Feb 2015 19:41:45 +0100 Subject: [PATCH] added some comment lines, nothing of importance --- picoblogger/main.py | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/picoblogger/main.py b/picoblogger/main.py index 794f18b..efee847 100755 --- a/picoblogger/main.py +++ b/picoblogger/main.py @@ -4,7 +4,10 @@ import os,re,subprocess from string import Template from argparse import ArgumentParser -# check for arguments and options +######################################## +# UI - check for arguments and options # +######################################## + parser = ArgumentParser(description="Manage your weblog via commandline. Creates a static html5 compliant website with your publications.") # general options @@ -50,6 +53,9 @@ article_parser_remove.add_argument('id', help='id like specified by [list]') args = parser.parse_args() print(args) +#################### +# Global Constants # +#################### # set path to blog try: @@ -60,6 +66,12 @@ try: except: raise +(pbconf,blogconf,l10nconf) = (False,False,False) + +################## +# Help Functions # +################## + # parse unix-config-style files def parse_conf(path): @@ -74,7 +86,10 @@ def parse_conf(path): aVars[match.group(1)] = match.group(2) return aVars -(pbconf,blogconf,l10nconf) = (False,False,False) + +###################### +# Parse Config Files # +###################### pbconfpath = os.path.join("/","etc","picoblogger","pb.conf") try: