mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
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
1 changed files with 5 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue