477 Private method to import the styles of the given lexers. |
477 Private method to import the styles of the given lexers. |
478 |
478 |
479 @param lexers dictionary of lexer objects for which to import the |
479 @param lexers dictionary of lexer objects for which to import the |
480 styles |
480 styles |
481 """ |
481 """ |
|
482 from eric6config import getConfig |
|
483 stylesDir = getConfig("ericStylesDir") |
|
484 |
482 fn = E5FileDialog.getOpenFileName( |
485 fn = E5FileDialog.getOpenFileName( |
483 self, |
486 self, |
484 self.tr("Import Highlighting Styles"), |
487 self.tr("Import Highlighting Styles"), |
485 "", |
488 stylesDir, |
486 self.tr("Highlighting styles file (*.e4h)")) |
489 self.tr("Highlighting styles file (*.e4h)")) |
487 |
490 |
488 if not fn: |
491 if not fn: |
489 return |
492 return |
490 |
493 |