Kaydet (Commit) 877d2992 authored tarafından Barry Warsaw's avatar Barry Warsaw

Fixed running of standalone via command line. Also, only do save from

main() so that run-as-modal doesn't automatically save database.
üst fbba304a
......@@ -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__':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment