[python-win32] Error when trying to open a Microsoft Project file
Paul Koning
pkoning at equallogic.com
Wed May 30 21:54:32 CEST 2007
>>>>> "Tim" == Tim Roberts <timr at probo.com> writes:
>> Can anyone tell me why I'm getting this error message?
Tim> Yes, I can. You are trying to open a file name with a tab
Tim> character in it. That is, your file name is C colon tab E S T
Tim> dot M P P.
Tim> Use a.FileOpen( "C:\\test.mpp" ) or a.FileOpen( "C:/test.mpp" )
or a.FileOpen (r"C:\test.mpp"). I like raw strings when dealing with
DOS style filenames. That way I don't have to double the backslashes
and I don't have to remember whether forward slashes are supported in
that particular spot.
paul
More information about the Python-win32
mailing list