[Tutor] os.popen, xp

Luke Paireepinart rabidpoobear at gmail.com
Sun Nov 19 02:00:37 CET 2006


Coen van der Kamp wrote:
> Hello,
> I've got a problem with the following code:
>
> import os, sys, string
> mycolors = os.popen("coloryze --monochromatic --total=6 &").read().rstrip()
> print mycolors
>
> This works fine on OS X, but when i tried it on XP the only result was 
> an empty string. When I run coloryze from the promt
when you run it from which prompt?
The OS X one or the XP one?
>  the return is a nice 
> list of colors. So coloryze works. What am I missing here?
>
> Coen.
>
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>   



More information about the Tutor mailing list