]> Frank Brehm's Git Trees - my-stuff/py-logrotate.git/commitdiff
und weiter ...
authorFrank Brehm <frank@brehm-online.com>
Sun, 17 Apr 2011 19:49:49 +0000 (19:49 +0000)
committerFrank Brehm <frank@brehm-online.com>
Sun, 17 Apr 2011 19:49:49 +0000 (19:49 +0000)
git-svn-id: http://svn.brehm-online.com/svn/my-stuff/python/PyLogrotate/trunk@201 ec8d2aa5-1599-4edb-8739-2b3a1bc399aa

logrotate.py
po/POTFILES.in [new file with mode: 0644]

index c570ef9022add1df90f9ef32b98ec73821cf5107..4a9a183d751b5cde939779f59f2ebffd1b7b45c6 100755 (executable)
@@ -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 (file)
index 0000000..9e70925
--- /dev/null
@@ -0,0 +1,3 @@
+encoding: UTF-8
+logrotate.py
+LogRotateGetopts.py