Python console is back?

  • Marte2007
    24th Aug 2011 Member 0 Permalink
    Some time ago, when I started PT, it printed out on stdout "Python console disabled on compile time.", now it doesn't. It has been enabled, or it has been removed from source? If it's enabled, how to access it?
  • Pilihp64
    24th Aug 2011 Developer 0 Permalink
    The python console died a long time ago, because of issues of getting it to work without having python installed.

    The console is now Lua powered since v50. The python version is still in the source, but has just been cleaned up a bit to not display that.
  • Marte2007
    24th Aug 2011 Member 0 Permalink
    Ok thanks.
    I'm doing everything possible to interface Python to PT (for example, see my post about telnet interface). Is there a Lua script or other solution (possibly not requiring a recompile) that allow PT to receive commands from Python or other applications?
  • Jammy45
    24th Aug 2011 Member 0 Permalink
    @Lord-Spectre (View Post)
    when you say recive python commands do you mean like set type metl pscn?

    if sonyou can just put a ! in front of it for example: !set ctype lava neut
  • Marte2007
    24th Aug 2011 Member 0 Permalink
    You didn't understand... I don't mean Python commands, I don't mind which one (tpt.set() or !set) but I want to send it FROM Python.

    In short term, the Lua script should watch for commands in some way (socket, d-bus, file/fifo etc..) and when it receives one (as string) it executes it and possibly passes back the return value.