mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
fix profiling wrapper for the moved osc lib
This commit is contained in:
parent
b9f53cbfb7
commit
4f88c9b4ad
@ -3,7 +3,9 @@
|
||||
import hotshot, hotshot.stats
|
||||
import tempfile
|
||||
import os, sys
|
||||
import osc
|
||||
|
||||
from osc import commandline
|
||||
from osc.core import init_basicauth
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
@ -15,8 +17,8 @@ if __name__ == '__main__':
|
||||
|
||||
prof = hotshot.Profile(filename)
|
||||
|
||||
osc.init_basicauth()
|
||||
prof.runcall(osc.main)
|
||||
init_basicauth()
|
||||
prof.runcall(commandline.main)
|
||||
print 'run complete. analyzing.'
|
||||
prof.close()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user