16 |
16 |
17 def __pyName(py_dir, py_file): |
17 def __pyName(py_dir, py_file): |
18 """ |
18 """ |
19 Local function to create the Python source file name for the compiled |
19 Local function to create the Python source file name for the compiled |
20 .ui file. |
20 .ui file. |
21 |
21 |
22 @param py_dir suggested name of the directory (string) |
22 @param py_dir suggested name of the directory (string) |
23 @param py_file suggested name for the compile source file (string) |
23 @param py_file suggested name for the compile source file (string) |
24 @return tuple of directory name (string) and source file name (string) |
24 @return tuple of directory name (string) and source file name (string) |
25 """ |
25 """ |
26 return py_dir, "Ui_{0}".format(py_file) |
26 return py_dir, "Ui_{0}".format(py_file) |
47 @param argv the list of command line arguments. |
47 @param argv the list of command line arguments. |
48 """ |
48 """ |
49 # Compile .ui files |
49 # Compile .ui files |
50 print("Compiling user interface files...") |
50 print("Compiling user interface files...") |
51 compileUiFiles() |
51 compileUiFiles() |
52 |
52 |
53 |
53 |
54 if __name__ == "__main__": |
54 if __name__ == "__main__": |
55 try: |
55 try: |
56 main(sys.argv) |
56 main(sys.argv) |
57 except SystemExit: |
57 except SystemExit: |
58 raise |
58 raise |
59 except Exception: |
59 except Exception: |
60 print( |
60 print( |
61 "\nAn internal error occured. Please report all the output of the" |
61 "\nAn internal error occured. Please report all the output of the" |
62 " program, \nincluding the following traceback, to" |
62 " program, \nincluding the following traceback, to" |
63 " eric-bugs@eric-ide.python-projects.org.\n") |
63 " eric-bugs@eric-ide.python-projects.org.\n" |
|
64 ) |
64 raise |
65 raise |
65 |
66 |
66 # |
67 # |
67 # eflag: noqa = M801 |
68 # eflag: noqa = M801 |