then in Python i try to read from this pipe server, it doesnt connect,
can it be the unequal with the pipe name?, the pipe is not written anywhere as i file, to be able to check the name ?.
I created a chromium web browser in python, and now i would like Vp and python communicate through the pipe system, so that it can open a new Url ( when vp writes to the pipe) without opening a new window.
Vp code : ( to write to the pipe )
Code: Select all
PipeName = pipeStream::makeLocalPipeName("pipe_vp_read"),
Pipe = pipeStream::openServer(PipeName),
Pipe:writef("\n % % %","ooo","eeee","\n"),
Pipe:flush(),
Pipe:close(),!.
<pre>import os, time, sys
pipe_name = 'pipe_vp_read'
def paread( ):
pipein = open(pipe_name, 'r')
while True:
print 'begin read '
line = pipein.readline()[:-1]
print 'Parent %d got "%s" at %s' % (os.getpid(), line, time.time( ))
paread()
</pre>
Python exits with :
pipein = open(pipe_name, 'r')
IOError: [Errno 2] No such file or directory: 'pipe_vp_read'