open file with whitespaces

mardif mariano.difelice at gmail.com
Fri May 19 10:46:18 EDT 2006


OK OK GUYS!!!!
I've found the solution: ( effectly, a friend of mine has found the
solution )

import os

os.spawnl(os.P_WAIT, "c:\programmi\internet
explorer\iexplore.exe",'"C:\Documents and
Settings\michele\Desktop\ciccio.html"','"C:\Documents and
Settings\michele\Desktop\ciccio.html"')

The secret are the ' simbols around arguments:

' "C:\Documents and Settings\michele\Desktop\ciccio.html" '

Without these, don't work!

Very STRONG!!!!!

bye and thx




More information about the Python-list mailing list