Explorar o código

Verbosity in statustils.py

Andrej Studen @ VBOX hai 11 meses
pai
achega
694cc28bf4
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      pythonScripts/statUtils.py

+ 3 - 1
pythonScripts/statUtils.py

@@ -52,12 +52,14 @@ def getImage(setup, row, field, extraPath=None):
     urlPath=fb.formatPathURL(setup['project'],remotePath)
     localPath=os.path.join(setup['localDir'],row[field])
     if os.path.isfile(localPath):
-        print('{} done'.format(localPath))
+        pass
+        #print('{} done'.format(localPath))
     else:
         if not fb.entryExists(urlPath):
             print('No file {}'.format(urlPath))
             return "NONE"
         fb.readFileToFile(urlPath,localPath)
+        print('Copying remote {} -> {} done'.format(urlPath,localPath))
     return localPath
 
 def getSegmentations(setup,row):