mirror of https://github.com/kivy/kivy.git
Doc: Loader add note: about SMBHandler
This commit is contained in:
parent
75781d485b
commit
3f1aa3f0fb
|
@ -150,10 +150,14 @@ class LoaderBase(object):
|
||||||
proto = filename.split(':', 1)[0]
|
proto = filename.split(':', 1)[0]
|
||||||
if proto == 'smb':
|
if proto == 'smb':
|
||||||
try:
|
try:
|
||||||
|
# note: it's important to load SMBHandler for every time
|
||||||
|
# otherwise the data is occasionaly not loaded
|
||||||
from smb.SMBHandler import SMBHandler
|
from smb.SMBHandler import SMBHandler
|
||||||
except ImportError:
|
except ImportError:
|
||||||
Logger.Info('Loader: PySMB not installed')
|
Logger.warning(
|
||||||
|
'Loader: can not load PySMB: make sure it is installed')
|
||||||
return
|
return
|
||||||
|
self._smb_initialized = True
|
||||||
import tempfile
|
import tempfile
|
||||||
data = None
|
data = None
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue