yapi
This commit is contained in:
@@ -1,4 +1,16 @@
|
||||
/**
|
||||
* @file python.c
|
||||
*
|
||||
* @brief data structures and init for Py4YAP library
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup PY4YAP
|
||||
* @ingroup python
|
||||
* @brief make Python talk to YAP
|
||||
* @{
|
||||
*/
|
||||
|
||||
#include "py4yap.h"
|
||||
#include <VFS.h>
|
||||
@@ -127,3 +139,5 @@ X_API bool do_init_python(void) {
|
||||
// python_output();
|
||||
return true;
|
||||
}
|
||||
|
||||
// @}
|
||||
|
@@ -88,11 +88,11 @@ blank(Text) :-
|
||||
|
||||
|
||||
streams(false) :-
|
||||
close(user_input),
|
||||
%close(user_input),
|
||||
close(user_output),
|
||||
close(user_error).
|
||||
streams( true) :-
|
||||
open('/python/input', read, _Input, [alias(user_input),bom(false),script(false)]),
|
||||
%open('/python/input', read, _Input, [alias(user_input),bom(false),script(false)]),
|
||||
open('/python/sys.stdout', append, _Output, [alias(user_output)]),
|
||||
open('/python/sys.stderr', append, _Error, [alias(user_error)]).
|
||||
|
||||
|
@@ -704,7 +704,6 @@ class YAPRun(InteractiveShell):
|
||||
else:
|
||||
linec = True
|
||||
rcell = cell[1:].strip()
|
||||
print(cell)
|
||||
try:
|
||||
[magic,cell] = rcell.split(maxsplit = 1, sep = '\n')
|
||||
except:
|
||||
|
Reference in New Issue
Block a user