From 3f1aa3f0fb5c19d9ee252d1f29ca7f1b1afa734d Mon Sep 17 00:00:00 2001 From: Qua-non Date: Thu, 16 Aug 2012 20:19:50 +0530 Subject: [PATCH] Doc: Loader add note: about SMBHandler --- kivy/loader.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kivy/loader.py b/kivy/loader.py index 6eafe7ef7..c5fb635e5 100644 --- a/kivy/loader.py +++ b/kivy/loader.py @@ -150,10 +150,14 @@ class LoaderBase(object): proto = filename.split(':', 1)[0] if proto == 'smb': try: + # note: it's important to load SMBHandler for every time + # otherwise the data is occasionaly not loaded from smb.SMBHandler import SMBHandler except ImportError: - Logger.Info('Loader: PySMB not installed') + Logger.warning( + 'Loader: can not load PySMB: make sure it is installed') return + self._smb_initialized = True import tempfile data = None try: