summaryrefslogtreecommitdiffstats
path: root/Tools/pynche
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1998-10-22 18:45:52 (GMT)
committerBarry Warsaw <barry@python.org>1998-10-22 18:45:52 (GMT)
commit877d299292063ce07c5ecc3e897216731bdf4e5a (patch)
tree445db39a79110845c7f0a102a6118afa4948fe92 /Tools/pynche
parentfbba304aaa62c57dfdf6feb88e1d996f9425aa02 (diff)
downloadcpython-877d299292063ce07c5ecc3e897216731bdf4e5a.zip
cpython-877d299292063ce07c5ecc3e897216731bdf4e5a.tar.gz
cpython-877d299292063ce07c5ecc3e897216731bdf4e5a.tar.bz2
Fixed running of standalone via command line. Also, only do save from
main() so that run-as-modal doesn't automatically save database.
Diffstat (limited to 'Tools/pynche')
-rw-r--r--Tools/pynche/Main.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/Tools/pynche/Main.py b/Tools/pynche/Main.py
index f266a8d..d6dbcb1 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__':