Bug fix: pkg_resources doesn't like cx_freeze.

Getting the location of bundling resources doesn't work
with cx_freeze so putting in some temporary error handling
while we figure out a better way to bundle the UI.
This commit is contained in:
Job Evers-Meltzer 2016-11-16 15:15:46 -06:00
parent 183617c85b
commit dd952ddbe3

View file

@ -92,8 +92,14 @@ class UIManager(object):
return d
def _check_for_bundled_ui(self):
bundle_manager = BundledUIManager(self.root, self.active_dir, get_bundled_ui_path())
return bundle_manager.setup()
try:
bundled_path = get_bundled_ui_path()
except Exception:
log.warning('Failed to get path for bundled UI', exc_info=True)
return False
else:
bundle_manager = BundledUIManager(self.root, self.active_dir, bundled_path)
return bundle_manager.setup()
def _up_to_date(self):
def _get_git_info():