188 Module function to export the keyboard shortcuts for the defined QActions. |
188 Module function to export the keyboard shortcuts for the defined QActions. |
189 |
189 |
190 @param fn filename of the export file (string) |
190 @param fn filename of the export file (string) |
191 @return flag indicating success |
191 @return flag indicating success |
192 """ |
192 """ |
|
193 # let the plugin manager create on demand plugin objects |
|
194 pm = e5App().getObject("PluginManager") |
|
195 pm.initOnDemandPlugins() |
|
196 |
193 try: |
197 try: |
194 if fn.lower().endswith("e4kz"): |
198 if fn.lower().endswith("e4kz"): |
195 try: |
199 try: |
196 import gzip |
200 import gzip |
197 except ImportError: |
201 except ImportError: |
221 Module function to import the keyboard shortcuts for the defined E5Actions. |
225 Module function to import the keyboard shortcuts for the defined E5Actions. |
222 |
226 |
223 @param fn filename of the import file (string) |
227 @param fn filename of the import file (string) |
224 @return flag indicating success |
228 @return flag indicating success |
225 """ |
229 """ |
|
230 # let the plugin manager create on demand plugin objects |
|
231 pm = e5App().getObject("PluginManager") |
|
232 pm.initOnDemandPlugins() |
|
233 |
226 try: |
234 try: |
227 if fn.lower().endswith("kz"): |
235 if fn.lower().endswith("kz"): |
228 try: |
236 try: |
229 import gzip |
237 import gzip |
230 except ImportError: |
238 except ImportError: |