Skip to content

Commit

Permalink
Cleanup test application on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Apr 14, 2016
1 parent 2e515a2 commit 709d3ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,12 @@ def start_app():
s = QGISAPP.showSettings()
print(s)

import atexit

@atexit.register
def exitQgis():
QGISAPP.exitQgis()

return QGISAPP


Expand Down

0 comments on commit 709d3ce

Please sign in to comment.