changeset 370:10e4f755beca

prof: move imports closer to when we need them (if we need them at all) I mean, I guess what I'm saying is that it's better, okay? Get off my back!
author David McClosky <dmcc@bigasterisk.com>
date Fri, 15 Jun 2007 18:46:16 +0000
parents f5786ee17219
children 058f2f508504
files light9/prof.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/light9/prof.py	Fri Jun 15 17:52:07 2007 +0000
+++ b/light9/prof.py	Fri Jun 15 18:46:16 2007 +0000
@@ -1,4 +1,3 @@
-import hotshot, hotshot.stats
 import sys, traceback
 
 def run(main, profile=False):
@@ -6,6 +5,7 @@
         main()
         return
     
+    import hotshot, hotshot.stats
     p = hotshot.Profile("/tmp/pro")
     p.runcall(main)
     p.close()