Переглянути джерело

Merge branch 'master' of https://git0.fmf.uni-lj.si/studen/nixSuite

Andrej Studen 2 роки тому
батько
коміт
b5936ee4d2
1 змінених файлів з 3 додано та 2 видалено
  1. 3 2
      wrapper/nixWrapper.py

+ 3 - 2
wrapper/nixWrapper.py

@@ -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)