startfile problems
Timothy Smith
timothy at open-networks.net
Tue Aug 2 18:35:33 EDT 2005
Dennis Lee Bieber wrote:
>On Tue, 02 Aug 2005 17:35:27 +1000, Timothy Smith
><timothy at open-networks.net> declaimed the following in comp.lang.python:
>
>
>
>
>>it's iterally just
>>
>>PDFname = 'tmp.pdf'
>>os.startfile(PDFname)
>>
>>thats the code.
>>
>>
>>
> No "import os"?
> And the full traceback?
>
>
>
>>so obviously it contains no errnous characters. see my update btw. it
>>actually DOES open the report, but throws up the exception as well.
>>
>>
>
> Must not have made it to my server yet, assuming it was posted
>after my comment.
>
>import os
>
>PDFname = "test.pdf"
>os.startfile(PDFname)
>
> No errors if I'm in the directory with the PDF when I execute
>the program...
>
>E:\UserData\Dennis Lee Bieber\My Documents>script1.py
>
>E:\UserData\Dennis Lee Bieber\My Documents>python script1.py
>
>E:\UserData\Dennis Lee Bieber\My Documents>
>
>
>
>
>
yep the program is executed in the same dir as the pdf file. like i said
it actually opens it, but throws up an exception as well.
if i hadn't seen it with my own eyes i wouldn't believe it.
More information about the Python-list
mailing list