eliminate startup spam for resources that can't be found

remove debug messages (and traceback) from node output in the case that the
pkg resources hook can't find a requested file. it will now silently return
the empty string for files that can't be resolved
This commit is contained in:
robk-tahoe 2008-01-23 18:22:23 -07:00
parent ffeee54f91
commit 214411a10f
1 changed files with 3 additions and 3 deletions

View File

@ -36,9 +36,9 @@ def install():
#print 'returning %s' % (ret,)
return ret
except NotImplementedError:
print 'get_resource_filename(%s,%s): not found' % (self._module_name, resource_name)
import traceback
traceback.print_exc()
#print 'get_resource_filename(%s,%s): not found' % (self._module_name, resource_name)
#import traceback
#traceback.print_exc()
return ''
pkg_resources.register_loader_type(zipimport.zipimporter, Provider)