os.system help

Reid Nichol rnichol_rrc at yahoo.com
Sun Apr 18 00:32:01 EDT 2004


Unfortunately PIL only writes .eps files.  I was going to get the users 
to install gs but of course it's install directory is variable.  I've 
tried using shortcuts but that didn't work.

Since most of my intended users use windows only...



Grzegorz Dostatni wrote:
> Cheers.
> 
> In short ghostscript is not installed by default on windows. You can
> install it yourself (http://www.cs.wisc.edu/~ghost/doc/AFPL/get814.htm)
> and install. You could also try to package it in your program somehow (for
> example including the binary in your program directory). I'm not sure if
> it will work properly though.
> 
> I don't think there is anything installed by default on windows that can
> read .ps files.
> 
> You could also try another approach. I am not entirely sure, but I think
> that Python Imaging Library supports writing/reading .ps files.
> 
> Greg
> 
> 
> 
> Advice is what we ask for when we already know the answer but wish we
> didn't.
>           -- Erica Jong (How to Save Your Own Life, 1977)
> 
> 
> On Sat, 17 Apr 2004, Reid Nichol wrote:
> 
> 
>>Hello,
>>   I have made a program that works wonderfully on OpenBSD but it uses
>>os.system to get ghostscript to convert ps to jpeg.  But, I wish this
>>program to run on Windows as well.  Is there any way I can snag where
>>the gs executable is on Windows?  What it is named?  And so forth.
>>
>>
> 
> 




More information about the Python-list mailing list