17 from EricWidgets.EricApplication import ericApp |
17 from EricWidgets.EricApplication import ericApp |
18 |
18 |
19 from .ConfigurationPageBase import ConfigurationPageBase |
19 from .ConfigurationPageBase import ConfigurationPageBase |
20 from .Ui_EditorFilePage import Ui_EditorFilePage |
20 from .Ui_EditorFilePage import Ui_EditorFilePage |
21 |
21 |
|
22 import Globals |
22 from Utilities import supportedCodecs |
23 from Utilities import supportedCodecs |
23 import Preferences |
24 import Preferences |
24 |
25 |
25 |
26 |
26 class EditorFilePage(ConfigurationPageBase, Ui_EditorFilePage): |
27 class EditorFilePage(ConfigurationPageBase, Ui_EditorFilePage): |
359 def on_previewMarkdownPyMdownInstallPushButton_clicked(self): |
360 def on_previewMarkdownPyMdownInstallPushButton_clicked(self): |
360 """ |
361 """ |
361 Private slot to install the pymdown extensions package via pip. |
362 Private slot to install the pymdown extensions package via pip. |
362 """ |
363 """ |
363 pip = ericApp().getObject("Pip") |
364 pip = ericApp().getObject("Pip") |
364 pip.installPackages(["pymdown-extensions"], interpreter=sys.executable) |
365 pip.installPackages(["pymdown-extensions"], |
|
366 interpreter=Globals.getPythonExecutable()) |
365 self.polishPage() |
367 self.polishPage() |
366 |
368 |
367 def polishPage(self): |
369 def polishPage(self): |
368 """ |
370 """ |
369 Public slot to perform some polishing actions. |
371 Public slot to perform some polishing actions. |