I've been playing around with Python for a little while now and finding it very enjoyable. But have run into a bit of a problem:
I am working on writing a very basic irc client (planning an irc based game with it's own server and clients at some point in the distant future). Being a lazy sob I have tried getting things to work using irclib or blackbox. All I am aiming for at the moment is sending and receiving a message. I can manage both but have to run two separate scripts in individual terminal windows (on Linux here).
So far I have found mention of subprocesses and just using os.system('python other_script.py &') but while that is all nice and dandy for running the script listening and displaying a message when ever someone messages me, I still haven't found a way to pass info to it – getting it to pass on a message to someone... So at the moment I need to log on with two nicknames in order to send and receive messages... which is hardly ideal. No doubt there is a perfectly logical way to do this with irclib or blackbox (have had a look with help()) but I am completely stumped - as I fear it is outside of my understanding for the time being.
So in short: How do I combine the listen and send script OR get one to pass info to the other?
Anyone got any pointers or tutorials that they know of that might make this all a bit clearer?
Thanks in advance.