|
@@ -74,7 +74,7 @@ def loadModule(slicer,qt,name,moduleName):
|
|
|
|
|
|
|
|
|
def loadLibrary(name,doReload=True):
|
|
|
-
|
|
|
+ print('loadLibrary')
|
|
|
installDir=getSuitePath()
|
|
|
finalName=os.path.join(installDir,name)
|
|
|
if os.path.isdir(finalName):
|
|
@@ -101,6 +101,7 @@ def loadLibrary(name,doReload=True):
|
|
|
http = urllib3.PoolManager()
|
|
|
|
|
|
rsource=remoteSources[name]
|
|
|
+ print(rsource)
|
|
|
r = http.request('GET', rsource['url'], preload_content=False)
|
|
|
chunk_size=65536
|
|
|
with open(tempFile, 'wb') as out:
|
|
@@ -111,7 +112,7 @@ def loadLibrary(name,doReload=True):
|
|
|
out.write(data)
|
|
|
|
|
|
r.release_conn()
|
|
|
-
|
|
|
+ print('File {}: {}'.format(tempFile,os.path.isfile(tempFile)))
|
|
|
#2 Unzip
|
|
|
with zipfile.ZipFile(tempFile,'r') as zip_ref:
|
|
|
zip_ref.extractall(installDir)
|