Conditions | 7 |
Total Lines | 15 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | #!/usr/bin/env python |
||
16 | def filter(path, encoding): |
||
17 | f = codecs.open(path, 'r', encoding) |
||
18 | n = 0 |
||
19 | fname = os.path.basename(path) |
||
20 | if fname == "iutest_config.hpp": |
||
21 | n = 2 |
||
22 | if f: |
||
23 | for line in f: |
||
24 | sys.stdout.write(line) |
||
25 | if n < 2: |
||
26 | if line.find("//=========================================================") != -1: |
||
27 | n += 1 |
||
28 | if n == 2: |
||
29 | print('#include "iutest_config.hpp"') |
||
30 | f.close() |
||
31 | |||
48 |