How to load and execute python scripts from a local path after python console is trig

المشرف العام

Administrator
طاقم الإدارة
I had created a file named "startup.py" in users python home directory (... .qgis2/python) and i had triggered the python console in startup.py file by

import qgis

qgis.utils.iface.actionShowPythonDialog().trigger()

That successfully triggers console as soon as QGIS opens. Now i want python scripts from local path to be loaded and executed in the console automatically using PyQGIS. How this can be done? Help would be appreciated.



أكثر...
 
أعلى