Skip to content

Commit

Permalink
Add startup python script support
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Aug 27, 2012
1 parent f57a064 commit 924e7eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/python/qgspythonutilsimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 924e7eb

Please sign in to comment.