mirror of https://github.com/python/cpython
Fixed running of standalone via command line. Also, only do save from
main() so that run-as-modal doesn't automatically save database.
This commit is contained in:
parent
fbba304aaa
commit
877d299292
|
@ -149,8 +149,6 @@ def run(app, s):
|
|||
app.start()
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
# save the option database
|
||||
s.save_views()
|
||||
|
||||
|
||||
|
||||
|
@ -182,7 +180,11 @@ def main():
|
|||
elif opt in ('-i', '--initfile'):
|
||||
initfile = arg
|
||||
|
||||
run()
|
||||
app, sb = build(initialcolor=initialcolor,
|
||||
initfile=initfile,
|
||||
ignore=ignore)
|
||||
run(app, sb)
|
||||
sb.save_views()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in New Issue