mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-27 02:16:12 +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 hotshot, hotshot.stats
|
||||||
import tempfile
|
import tempfile
|
||||||
import os, sys
|
import os, sys
|
||||||
import osc
|
|
||||||
|
from osc import commandline
|
||||||
|
from osc.core import init_basicauth
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
@ -15,8 +17,8 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
prof = hotshot.Profile(filename)
|
prof = hotshot.Profile(filename)
|
||||||
|
|
||||||
osc.init_basicauth()
|
init_basicauth()
|
||||||
prof.runcall(osc.main)
|
prof.runcall(commandline.main)
|
||||||
print 'run complete. analyzing.'
|
print 'run complete. analyzing.'
|
||||||
prof.close()
|
prof.close()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user