diff options
Diffstat (limited to 'scripts/pybootchartgui')
| -rw-r--r-- | scripts/pybootchartgui/pybootchartgui/main.py.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/pybootchartgui/pybootchartgui/main.py.in b/scripts/pybootchartgui/pybootchartgui/main.py.in index cc9c40b178..e9d2c74f1e 100644 --- a/scripts/pybootchartgui/pybootchartgui/main.py.in +++ b/scripts/pybootchartgui/pybootchartgui/main.py.in | |||
| @@ -155,11 +155,13 @@ def main(argv=None): | |||
| 155 | filename = _get_filename(options.output) | 155 | filename = _get_filename(options.output) |
| 156 | res_list = parsing.split_res(res, options.num) | 156 | res_list = parsing.split_res(res, options.num) |
| 157 | n = 1 | 157 | n = 1 |
| 158 | width = len(str(len(res_list))) | ||
| 159 | s = "_%%0%dd." % width | ||
| 158 | for r in res_list: | 160 | for r in res_list: |
| 159 | if len(res_list) == 1: | 161 | if len(res_list) == 1: |
| 160 | f = filename + "." + options.format | 162 | f = filename + "." + options.format |
| 161 | else: | 163 | else: |
| 162 | f = filename + "_" + str(n) + "." + options.format | 164 | f = filename + s % n + options.format |
| 163 | n = n + 1 | 165 | n = n + 1 |
| 164 | def render(): | 166 | def render(): |
| 165 | batch.render(writer, r, options, f) | 167 | batch.render(writer, r, options, f) |
