global_startup.patch
src/python/qgspythonutilsimpl.cpp | ||
---|---|---|
129 | 129 |
// initialize 'iface' object |
130 | 130 |
runString( "qgis.utils.initInterface(" + QString::number(( unsigned long ) interface ) + ")" ); |
131 | 131 | |
132 |
// all users startup script |
|
133 |
QString globalstartuppath = "\""+ pythonPath() + "\" + \"/global_startup.py\""; |
|
134 |
runString( "if os.path.exists(" + globalstartuppath + "): from global_startup import *\n" ); |
|
135 | ||
136 |
// personal startup script |
|
132 | 137 |
QString startuppath = homePythonPath() + " + \"/startup.py\""; |
133 | 138 |
runString( "if os.path.exists(" + startuppath + "): from startup import *\n" ); |
134 | 139 |
} |