[Pythonmac-SIG] Running "freeze" on non-framework Python/universal binary issues
Christopher Barker
Chris.Barker at noaa.gov
Fri Jul 21 02:03:04 CEST 2006
Bob Ippolito wrote:
> On Jul 20, 2006, at 4:18 PM, Kevin Walzer wrote:
>>> some fiddling in your main script if DISPLAY isn't set though.
> If I were doing it I'd check for DISPLAY and look at the output of "/
> usr/X11R6/bin/xauth list" to see if X11 is running.
Another option is some C code I found posted on the net somewhere.
Rather than looking for DISPLAY, or xauth, it simply tries to connect to
the X server. You get an error if it doesn't work.
I've only tested it on linux.
I even made a Python module out of it.
Code enclosed.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IsX.tar.gz
Type: application/x-gzip
Size: 11403 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20060720/e1ea145b/attachment-0001.bin
More information about the Pythonmac-SIG
mailing list