Mercurial > pytave
changeset 14:56254a2e18e3
Removed interactive check (did not work properly)
author | David Grundberg <individ@acc.umu.se> |
---|---|
date | Thu, 23 Oct 2008 20:45:37 +0200 |
parents | dc8f6015f3e1 |
children | 1b8ccabfa296 |
files | ChangeLog pytave.cc |
diffstat | 2 files changed, 6 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Oct 23 20:28:50 2008 +0200 +++ b/ChangeLog Thu Oct 23 20:45:37 2008 +0200 @@ -1,6 +1,7 @@ -2008-10-xx David Grundberg <individ@acc.umu.se> +2008-10-23 David Grundberg <individ@acc.umu.se> - * pytave.cc: Use octave_main() to initialize Octave. + * pytave.cc: Use octave_main() to initialize Octave. Introduces + readline history clashes with interactive Python interpreter. * configure.ac: Better testing for Python dependencies. * configure.ac: Renamed my_ to pytave_ * configure.ac: Fixed whitespace.
--- a/pytave.cc Thu Oct 23 20:28:50 2008 +0200 +++ b/pytave.cc Thu Oct 23 20:45:37 2008 +0200 @@ -53,16 +53,9 @@ } // Initialize Octave. - if (Py_FdIsInteractive(stdin, NULL)) { - // Print Octave interactive message. - char* argv[] = {"octave", "--no-line-editing", "--no-history", NULL}; - octave_main(3, argv, 1); - } else { - // One may use -q to surpress the startup greeting. - char* argv[] = {"octave", "-q", "--no-line-editing", - "--no-history", NULL}; - octave_main(4, argv, 1); - } + // Also print Octave startup message. + char* argv[] = {"octave", "--no-line-editing", "--no-history", NULL}; + octave_main(3, argv, 1); // Initialize Python Numeric Array