File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 2828# i don't think this will ever need to be changed, but still...
2929TEMPLATE_FILE = "messages.pot"
3030
31+
3132def run ():
3233 # return unless command line arguments contain single directory path
3334 if (len (sys .argv ) != 2 ) or (sys .argv [1 ] in ("-h" , "--help" )):
34- print (_ ("Usage: %(program)s <tracker home>" ) % {"program" : sys .argv [0 ]})
35+ print (_ ("Usage: %(program)s <tracker home>" ) %
36+ {"program" : sys .argv [0 ]})
3537 return
3638 # collect file paths of html templates
3739 home = os .path .abspath (sys .argv [1 ])
@@ -40,8 +42,8 @@ def run():
4042 # glob is not used because i want to match file names
4143 # without case sensitivity, and that is easier done this way.
4244 htmlfiles = [filename for filename in os .listdir (htmldir )
43- if os .path .isfile (os .path .join (htmldir , filename ))
44- and filename .lower ().endswith (".html" )]
45+ if os .path .isfile (os .path .join (htmldir , filename ))
46+ and filename .lower ().endswith (".html" )]
4547 else :
4648 htmlfiles = []
4749 # return if no html files found
@@ -60,6 +62,7 @@ def run():
6062 # run
6163 talgettext .main ()
6264
65+
6366if __name__ == "__main__" :
6467 run ()
6568
You can’t perform that action at this time.
0 commit comments