Popular recipes tagged "startup"http://code.activestate.com/recipes/tags/startup/popular/2015-01-11T10:53:38-08:00ActiveState Code RecipesClear Only Project Modules (Python)
2014-12-17T19:03:15-08:00Cornelius Jatniel Prinsloohttp://code.activestate.com/recipes/users/4191358/http://code.activestate.com/recipes/578982-clear-only-project-modules/
<p style="color: grey">
Python
recipe 578982
by <a href="/recipes/users/4191358/">Cornelius Jatniel Prinsloo</a>
(<a href="/recipes/tags/clear/">clear</a>, <a href="/recipes/tags/modules/">modules</a>, <a href="/recipes/tags/project/">project</a>, <a href="/recipes/tags/reload/">reload</a>, <a href="/recipes/tags/script/">script</a>, <a href="/recipes/tags/startup/">startup</a>).
</p>
<p>Useful for python sessions that have a long startup time
because of external dependancies
[In my case that would be pygame and pymunk]
I've got a slow computer so it takes a while to startup
this is the solution I came up with</p>
<p>import this before any other of your project imports
example:
import reloading # The modules in your project folder get cleared
then load the rest of your project modules</p>
<p>make sure that the reloading script is in your project folder, or else it won't work</p>
<p>You might be able to extend this by changing line</p>
QGIS startup script: Change display of coordinates (Python)
2015-01-11T10:53:38-08:00redoutehttp://code.activestate.com/recipes/users/4188210/http://code.activestate.com/recipes/578692-qgis-startup-script-change-display-of-coordinates/
<p style="color: grey">
Python
recipe 578692
by <a href="/recipes/users/4188210/">redoute</a>
(<a href="/recipes/tags/coordinates/">coordinates</a>, <a href="/recipes/tags/gis/">gis</a>, <a href="/recipes/tags/qgis/">qgis</a>, <a href="/recipes/tags/startup/">startup</a>).
</p>
<p>This script for QGIS version 2 replaces the default statusbar coordinate display with a configurable widget. Save the script as .qgis2/python/startup.py. Click the statusbar widget left of the coordinates, initially labelled 'EPSG:4326', to select the demanded CRS. Delete startup.py to deinstall.</p>