
March 7th, 2013, 06:57 PM
|
 |
Contributing User
|
|
Join Date: Jun 2003
Location: Thessaloniki
Posts: 1,095
Time spent in forums: 3 Days 22 h 44 m 18 sec
Reputation Power: 11
|
|
Apart from appearing ugly its not causing any more trouble(other than some issues that i have fixed), so i will just do:
Code:
os.system( 'python %s > %s' % (htmlpage, temp) )
f = open( temp )
htmldata = f.read()
htmldata = htmldata.replace( 'Content-type: text/html; charset=utf-8', '' )
But i wonder by runnign this system.os() command and saving its html output to a temp file no vaild html data is being produced.
So is it really correct?
Can i somehow make the .py code run as a .py script?
|