Thanks. I forgot to pay attention to CONFIG :P
Fixed now. See my next post about SVN for how to get it.
---
James
On 01/11/2005, at 8:32 AM, Eric Schnoebelen wrote:
>
> I've been futzing around with building a PKGSRC package for
> PyMSNt (with PyAIMt and others to follow).
>
> I thought I'd use twistd to start the transport. Since I want
> to place the configuration file with the rest of my jabber
> configuration files, I modified PyMSNt.tac to list the path of
> the configuration file.
>
> However, when I try to start, I get the following complaint:
>
> ``Configuration file not found. You need to creaet a config.xml
> in the PyMSNt directory.''
>
> Here's PyMSNt.tac, as installed:
>
> # Path to the PyMSNt installed directory
> PATH = "/usr/pkg/libexec/jabber-transports/pymsnt"
>
> # Path to the configuration file
> CONFIG = "/usr/pkg/etc/jabberd/pymsnt.xml"
>
> ####
> # You shouldn't need to modify below this line
> ####
>
> # Make PATH is the in PYTHONPAHT
> import sys
> import os
> import os.path
> sys.path[0] = os.path.abspath(PATH)
> os.chdir(PATH)
>
> # Set up the service
> import main
> from twisted.application import service
> application = service.Application("PyMSNt")
> service = main.App()
> service.c.setServiceParent(application)
>
> So, the question is: I've set CONFIG, but PyMSNt, as started by
> twistd, isn't seeing it. How to I modify the above to allow
> PyMSNt to see the configuration file?
>
> Thanks,
> Eric
>
> --
> Eric Schnoebelen [EMAIL PROTECTED]
> http://www.cirr.com
> "I used to think I was indecisive, but now I'm not so sure."
> _______________________________________________
> py-transports mailing list
> [email protected]
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>