Inserting-embedding some html data at the end of a .py file

Michael Ross gmx at ross.cx
Tue Mar 5 19:06:33 EST 2013


On Wed, 06 Mar 2013 00:39:31 +0100, Νίκος Γκρ33κ <nikos.gr33k at gmail.com>  
wrote:

> htmldata = subprocess.check_output( '/home/nikos/public_html/cgi-bin/' +  
> htmlpage )
>
> htmldata = subprocess.check_output( ['/usr/bin/python',  
> '/home/nikos/public_html/cgi-bin/' + htmlpage] )
>
> Both of the above statemnts fail i'am afraid with the same error message.


check_output is available as of Python 2.7

I guess you are still on version 2.6 ?





More information about the Python-list mailing list