2007-01-20 Alex Roitman <shura@gramps-project.org>

* src/Utils.py (profile): Accept and pass additional arguments.
	* src/DataViews/_PersonView.py (delete_person_response): Busy cursor.



svn: r7937
This commit is contained in:
Alex Roitman
2007-01-20 09:35:40 +00:00
parent c2b4c7cdbb
commit d6f654a0e0
3 changed files with 8 additions and 2 deletions

View File

@ -1076,12 +1076,12 @@ def launch(prog_str,path):
os.spawnvpe(os.P_NOWAIT, prog, prog_list, os.environ)
def profile(func):
def profile(func,*args):
import hotshot, hotshot.stats
pr = hotshot.Profile('mystats.profile')
print "Start"
pr.runcall(func)
pr.runcall(func,*args)
print "Finished"
pr.close()
print "Loading profile"