python - subprocess.call unexpected indent -


i developing python addon kodi, , i'm new python. so, have issuse script.

i want, when mode none call

child = subprocess.call(["c:/kreiraj_listu.exe", "-k"])  

but "error contents: ('unexpected indent', ('c:\users\user\appdata\roaming\kodi\addons\plugin.video.example\main.py', 44, 1, '\tsubprocess.call(["c:/kreiraj_listu.exe", "-k"])\n'))"

here code:

if mode none:     child = subprocess.call(["c:/kreiraj_listu.exe", "-k"])      url = build_url({'mode': 'folder', 'foldername': 'folder one'})     li = xbmcgui.listitem('folder one', iconimage='defaultfolder.png')     xbmcplugin.adddirectoryitem(handle=addon_handle, url=url,                                 listitem=li, isfolder=true)     xbmcplugin.endofdirectory(addon_handle) 

if put "child" before "if" script works go loop. if put "child" in "if" error.

can me? thanks


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -