RE: listdir reports [Error 1006] The volume for a file has been externally altered so that the opened file is no longer valid

2009-01-08 Thread Per Olav Kroka
FYI: the '/*.*' is part of the error message returned. -Original Message- From: ch...@rebertia.com [mailto:ch...@rebertia.com] On Behalf Of Chris Rebert Sent: Wednesday, January 07, 2009 6:40 PM To: Per Olav Kroka Cc: python-list@python.org Subject: Re: listdir reports [Error

Downloading images with python

2006-10-20 Thread Hans Olav Hygen
On 23. of October last year a the follwing was posted to this group: > htmlSource=urllib.urlopen("http://www.godandscience.org/images/nebula.jpg";) > # Read from the object, storing the page's contents in 's'. > s = htmlSource.read() > htmlSource.close() > myfile = open("myfile.jpg", "w") > myfile

Data Type Problem in Python / COM

2005-11-07 Thread Olav
im location(0 To 2) As Double ' Define the location of the point location(0) = 5#: location(1) = 5#: location(2) = 0# ' Create the point Set pointObj = ThisDrawing.ModelSpace.AddPoint(location) It seems to me that this error is related to the data-ty