Is there any way to detect if a script is computed on QGIS python console or not?
Any attribute or test to assess it?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
I didn't check, try this:
A) from qgis.utils import iface
B) iface.mainWindow() == None
giev us a feedbak