52 py_file = ui_file[:-3] + '.py' |
52 py_file = ui_file[:-3] + '.py' |
53 |
53 |
54 # Allow the caller to change the name of the .py file or generate |
54 # Allow the caller to change the name of the .py file or generate |
55 # it in a different directory. |
55 # it in a different directory. |
56 if map is not None: |
56 if map is not None: |
57 py_dir, py_file = map(py_dir, py_file) |
57 py_dir, py_file = list(map(py_dir, py_file)) |
58 |
58 |
59 # Make sure the destination directory exists. |
59 # Make sure the destination directory exists. |
60 try: |
60 try: |
61 os.makedirs(py_dir) |
61 os.makedirs(py_dir) |
62 except: |
62 except: |
100 The main function of the script. |
100 The main function of the script. |
101 |
101 |
102 @param argv the list of command line arguments. |
102 @param argv the list of command line arguments. |
103 """ |
103 """ |
104 # Compile .ui files |
104 # Compile .ui files |
105 print "Compiling user interface files..." |
105 print("Compiling user interface files...") |
106 compileUiFiles() |
106 compileUiFiles() |
107 |
107 |
108 |
108 |
109 if __name__ == "__main__": |
109 if __name__ == "__main__": |
110 try: |
110 try: |
111 main(sys.argv) |
111 main(sys.argv) |
112 except SystemExit: |
112 except SystemExit: |
113 raise |
113 raise |
114 except: |
114 except: |
115 print \ |
115 print("""An internal error occured. Please report all the output of the program, |
116 """An internal error occured. Please report all the output of the program, |
|
117 including the following traceback, to eric5-bugs@eric-ide.python-projects.org. |
116 including the following traceback, to eric5-bugs@eric-ide.python-projects.org. |
118 """ |
117 """) |
119 raise |
118 raise |