Hi,

Hehe, I'm the author of eroaster ;-) well pipes are always a bit
difficult to use with pygtk, you always get strange errors. There is a
native python implementation rmdir, if you need a recursive rm
implemented in python, the tools.py module of eroaster includes such a
function.

Martin

On Thu, 2002-01-03 at 12:37, Morelli Enrico wrote:
> Dear all,
> 
> I'm writing a tar, cdrecord, mkisofs front-end using PyGtk starting from
> eroaster program from sourceforge.
> I have to create a temporary directory to copy some data (no problem using
> os.mkdir), but if the directory exist, the program must remove it.
> During the execution I have the following error:
> 
>     output=commands.getoutput('rm -rf %s' % self.CDR_multi)
>   File "/usr/lib/python1.5/commands.py", line 42, in getoutput
>     return getstatusoutput(cmd)[1]
>   File "/usr/lib/python1.5/commands.py", line 52, in getstatusoutput
>     text = pipe.read()
> IOError: [Errno 4] Interrupted system call
> 
> I have the same error if I use
> popen2.popen2('rm -rf %s' % self.CDR_multi).
> 
> 
> Some suggestion?
> 
> I use RH7.2 with python 1.5.
> -- 
>                            \\\ //
>                            (0 0)
> ------------------------ooO-(_)-Ooo-------------------------------
> #============================#=====================================#
> |     ENRICO MORELLI         |  email: [EMAIL PROTECTED]       |
> | *     *       *       *    |  phone: +39 055 4574269             |
> |  University of Florence    |  fax  : +39 055 4574253             |
> |  CERM - via Sacconi, 6 -  50019 Sesto Fiorentino (FI) - ITALY    |
> #============================#=====================================#
> 
> 
> _______________________________________________
> pygtk mailing list   [EMAIL PROTECTED]
> http://www.daa.com.au/mailman/listinfo/pygtk
-- 
Martin Preishuber - IT Expert, Student, SysAdmin
http://www.eclipt.at, mailto:[EMAIL PROTECTED]

"They that can give up essential liberty to obtain a little temporary
saftey deserve neither liberty not saftey."
-- Benjamin Franklin, 1759

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to