From: Frank Brehm Date: Sun, 17 Apr 2011 19:49:49 +0000 (+0000) Subject: und weiter ... X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=a00ca8c958a74d611fe4906e8041f2bbdff1dfde;p=my-stuff%2Fpy-logrotate.git und weiter ... git-svn-id: http://svn.brehm-online.com/svn/my-stuff/python/PyLogrotate/trunk@201 ec8d2aa5-1599-4edb-8739-2b3a1bc399aa --- diff --git a/logrotate.py b/logrotate.py index c570ef9..4a9a183 100755 --- a/logrotate.py +++ b/logrotate.py @@ -16,6 +16,8 @@ import re import sys import pprint +import gettext +import os.path from LogRotateGetopts import LogrotateOptParser; from LogRotateGetopts import LogrotateOptParserError; @@ -34,6 +36,9 @@ __license__ = 'GPL3' #----------------------------------------------------------------- def main(): + basedir = os.path.realpath(os.path.dirname(sys.argv[0])) + #print "Basedir: %s" % ( basedir ) + opt_parser = LogrotateOptParser( prog = "logrotate", version = __version__, diff --git a/po/POTFILES.in b/po/POTFILES.in new file mode 100644 index 0000000..9e70925 --- /dev/null +++ b/po/POTFILES.in @@ -0,0 +1,3 @@ +encoding: UTF-8 +logrotate.py +LogRotateGetopts.py