Bug report #15189

Startup.py executed twice

Added by Alex Eastwood over 8 years ago. Updated over 8 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:PyQGIS Console
Affected QGIS version:2.14.3 Regression?:No
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:23128

Description

In my startup.py file (in [user]\\.qgis\\python) I have simply

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

print "hello world" 

the console opens as expected, but my 'hello world' message consistently prints out twice. I posted on the GIS Stackexchange site where it appears at least 1 other user has experienced the same issue.

Associated revisions

Revision f54d845d
Added by Matthias Kuhn over 8 years ago

Run startup.py only once

Fix #15189

Revision 729fc493
Added by Matthias Kuhn over 8 years ago

Run startup.py only once

Fix #15189

History

#1 Updated by Anonymous over 8 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF