Skip to content
Permalink
Browse files

Import more useful libraries into console by default

  • Loading branch information
nyalldawson committed Feb 1, 2019
1 parent cc6d88e commit d0c24edf7d761a48f8f3505ffe358290d00691f1
Showing with 3 additions and 2 deletions.
  1. +3 −2 python/console/console_sci.py
@@ -34,8 +34,9 @@
from qgis.core import QgsApplication, QgsSettings, Qgis
from .ui_console_history_dlg import Ui_HistoryDialogPythonConsole

_init_commands = ["from qgis.core import *", "from qgis.gui import *", "from qgis.analysis import *", "import processing", "import qgis.utils",
"from qgis.utils import iface", "from qgis.PyQt.QtCore import *", "from qgis.PyQt.QtGui import *", "from qgis.PyQt.QtWidgets import *"]
_init_commands = ["import sys", "import os", "import re", "import math", "from qgis.core import *", "from qgis.gui import *", "from qgis.analysis import *", "import processing", "import qgis.utils",
"from qgis.utils import iface", "from qgis.PyQt.QtCore import *", "from qgis.PyQt.QtGui import *", "from qgis.PyQt.QtWidgets import *",
"from qgis.PyQt.QtNetwork import *", "from qgis.PyQt.QtXml import *"]
_historyFile = os.path.join(QgsApplication.qgisSettingsDirPath(), "console_history.txt")


0 comments on commit d0c24ed

Please sign in to comment.
You can’t perform that action at this time.