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:
parent
ffeee54f91
commit
214411a10f
|
@ -36,9 +36,9 @@ def install():
|
||||||
#print 'returning %s' % (ret,)
|
#print 'returning %s' % (ret,)
|
||||||
return ret
|
return ret
|
||||||
except NotImplementedError:
|
except NotImplementedError:
|
||||||
print 'get_resource_filename(%s,%s): not found' % (self._module_name, resource_name)
|
#print 'get_resource_filename(%s,%s): not found' % (self._module_name, resource_name)
|
||||||
import traceback
|
#import traceback
|
||||||
traceback.print_exc()
|
#traceback.print_exc()
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
pkg_resources.register_loader_type(zipimport.zipimporter, Provider)
|
pkg_resources.register_loader_type(zipimport.zipimporter, Provider)
|
||||||
|
|
Loading…
Reference in New Issue