Can't execute an external program !

Neil Hodgson neilh at scintilla.org
Wed Jun 14 09:18:01 EDT 2000


> I've tried this :
>
>    > f = open('./var/fiche-concessionnaire.rtf', 'w')
>   >  f.write(tpl.data)
>   >  f.close()
>    > commands.getoutput('c:\\windows\\write.exe
> ./var/fiche-concessionnaire.rtf')
>
> It always reply "Command Unknown" even when I try to use the DIR
> command.

# Module 'commands'
#
# Various tools for executing commands and looking at their output and
status.
#
# NB This only works (and is only relevant) for UNIX.

   It'd be nice if commands was fixed to work on Windows.

   Neil






More information about the Python-list mailing list