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
Post a Comment