Small fixes for importStepFromURL(url) function...
This commit is contained in:
parent
e0832ec3eb
commit
51a8d35645
|
@ -80,9 +80,8 @@ def importStepFromURL(url):
|
|||
#Now read and return the shape
|
||||
try:
|
||||
webFile = urlreader.urlopen(url)
|
||||
if webFile.getcode
|
||||
if platform.system() == 'Windows':
|
||||
localFileName = os.environ['TEMP']+url.split('/')[-1]
|
||||
localFileName = os.environ['TEMP']+'/'+url.split('/')[-1]
|
||||
else:
|
||||
localFileName = "/tmp/"+url.split('/')[-1]
|
||||
localFile = open(localFileName, 'w')
|
||||
|
|
Loading…
Reference in New Issue
Block a user