added some comment lines, nothing of importance

This commit is contained in:
Homer 2015-02-09 19:41:45 +01:00 committed by Homer S
parent 3b161c257c
commit 22df72569b
1 changed files with 17 additions and 2 deletions

View File

@ -4,7 +4,10 @@ import os,re,subprocess
from string import Template from string import Template
from argparse import ArgumentParser 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.") parser = ArgumentParser(description="Manage your weblog via commandline. Creates a static html5 compliant website with your publications.")
# general options # general options
@ -50,6 +53,9 @@ article_parser_remove.add_argument('id', help='id like specified by [list]')
args = parser.parse_args() args = parser.parse_args()
print(args) print(args)
####################
# Global Constants #
####################
# set path to blog # set path to blog
try: try:
@ -60,6 +66,12 @@ try:
except: except:
raise raise
(pbconf,blogconf,l10nconf) = (False,False,False)
##################
# Help Functions #
##################
# parse unix-config-style files # parse unix-config-style files
def parse_conf(path): def parse_conf(path):
@ -74,7 +86,10 @@ def parse_conf(path):
aVars[match.group(1)] = match.group(2) aVars[match.group(1)] = match.group(2)
return aVars return aVars
(pbconf,blogconf,l10nconf) = (False,False,False)
######################
# Parse Config Files #
######################
pbconfpath = os.path.join("/","etc","picoblogger","pb.conf") pbconfpath = os.path.join("/","etc","picoblogger","pb.conf")
try: try: