54 py_file = ui_file[:-3] + '.py' |
54 py_file = ui_file[:-3] + '.py' |
55 |
55 |
56 # Allow the caller to change the name of the .py file or generate |
56 # Allow the caller to change the name of the .py file or generate |
57 # it in a different directory. |
57 # it in a different directory. |
58 if map is not None: |
58 if map is not None: |
59 py_dir, py_file = map(py_dir, py_file) |
59 py_dir, py_file = list(map(py_dir, py_file)) |
60 |
60 |
61 # Make sure the destination directory exists. |
61 # Make sure the destination directory exists. |
62 try: |
62 try: |
63 os.makedirs(py_dir) |
63 os.makedirs(py_dir) |
64 except: |
64 except: |