mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Added psyco option, -O
This commit is contained in:
parent
725da854ce
commit
1928b2f70d
@ -182,6 +182,9 @@ if __name__ == '__main__':
|
|||||||
if '-p' in sys.args:
|
if '-p' in sys.args:
|
||||||
import profile, time
|
import profile, time
|
||||||
profile.run('main()', '%i.prof' % time.time())
|
profile.run('main()', '%i.prof' % time.time())
|
||||||
|
if '-O' in sys.args:
|
||||||
|
import psyco
|
||||||
|
psyco.full()
|
||||||
else:
|
else:
|
||||||
main()
|
main()
|
||||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||||
|
Loading…
Reference in New Issue
Block a user