Re: X server needed for agide --version?

Aschwin Marsman <[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
On Sat, 6 Sep 2003, Bram Moolenaar wrote:

> Aschwin Marsman wrote:
> 
> > In order to automatically check for updates of aap en agide,
> > I use aap --version and agide --version in a shell script.
> > 
> > No GUI is needed for both, but agide would like to make a
> > connection to the GUI:
> > 
> > Xlib: connection to ":0.0" refused by server
> > 
> > Is it possible to change agide to get "agide --version" 
> > working without a GUI?
> 
> The problem appears to be that simply importing the wxPython module
> already makes the connection to the X server.
> 
> I would call this a problem in wxPython, it shouldn't do real work when
> only importing the modules.

I agree.
 
> Avoiding this problem is tricky.  It requires postponing all imports
> that use wxPython until after checking for --version.  But it can be
> done!  Get version 0.119 when it's there (next week).

I will, it's a nice to have feature, I hope it doesn't obscure the code.
 
Have fun & a nice weekend,
 
Aschwin Marsman
 
--
[email protected]              http://www.marsman.org



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.