Skip to content
Permalink
Browse files

Add startup python script support

  • Loading branch information
NathanW2 committed Aug 27, 2012
1 parent f57a064 commit 924e7eb9f21d342f6dcdd50219e96f9d6cf2f954
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/python/qgspythonutilsimpl.cpp
@@ -125,6 +125,9 @@ void QgsPythonUtilsImpl::initPython( QgisInterface* interface )

// initialize 'iface' object
runString( "qgis.utils.initInterface(" + QString::number(( unsigned long ) interface ) + ")" );

QString startuppath = homePythonPath() + " + \"/startup.py\"";
runString( "if os.path.exists(" + startuppath + "): from startup import *\n" );
}

void QgsPythonUtilsImpl::exitPython()

0 comments on commit 924e7eb

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