30 """ |
30 """ |
31 Compile the .ui files to Python sources. |
31 Compile the .ui files to Python sources. |
32 """ |
32 """ |
33 if os.path.exists("src"): |
33 if os.path.exists("src"): |
34 # eric7 with 'src' layout |
34 # eric7 with 'src' layout |
35 compileUiDir(os.path.join("src", "eric7"), True, __pyName) |
35 compileUiDir(os.path.join("src", "eric7"), recurse=True, map=__pyName) |
36 elif os.path.exists("eric7"): |
36 elif os.path.exists("eric7"): |
37 # old layout or invoked from within 'src' |
37 # old layout or invoked from within 'src' |
38 compileUiDir("eric7", True, __pyName) |
38 compileUiDir("eric7", recurse=True, map=__pyName) |
39 else: |
39 else: |
40 print("No valid 'eric7' source layout could be found. Aborting...") |
40 print("No valid 'eric7' source layout could be found. Aborting...") |
41 |
41 |
42 |
42 |
43 def main(argv): |
43 def main(argv): |