From a00ca8c958a74d611fe4906e8041f2bbdff1dfde Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Sun, 17 Apr 2011 19:49:49 +0000 Subject: [PATCH] und weiter ... git-svn-id: http://svn.brehm-online.com/svn/my-stuff/python/PyLogrotate/trunk@201 ec8d2aa5-1599-4edb-8739-2b3a1bc399aa --- logrotate.py | 5 +++++ po/POTFILES.in | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 po/POTFILES.in 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 -- 2.39.5