From 877d299292063ce07c5ecc3e897216731bdf4e5a Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 22 Oct 1998 18:45:52 +0000 Subject: [PATCH] Fixed running of standalone via command line. Also, only do save from main() so that run-as-modal doesn't automatically save database. --- Tools/pynche/Main.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Tools/pynche/Main.py b/Tools/pynche/Main.py index f266a8d184fe..d6dbcb1f8c7c 100644 --- a/Tools/pynche/Main.py +++ b/Tools/pynche/Main.py @@ -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__': -- 2.47.3