kopia lustrzana https://github.com/piku/piku
Guard against non-existent plugins dir.
rodzic
5ac6ae2d1d
commit
480d285882
1
piku.py
1
piku.py
|
@ -1386,6 +1386,7 @@ def _get_plugin_commands(path):
|
||||||
sys_path.append(abspath(path))
|
sys_path.append(abspath(path))
|
||||||
|
|
||||||
cli_commands = []
|
cli_commands = []
|
||||||
|
if isdir(path):
|
||||||
for item in listdir(path):
|
for item in listdir(path):
|
||||||
module_path = join(path, item)
|
module_path = join(path, item)
|
||||||
if not isdir(module_path):
|
if not isdir(module_path):
|
||||||
|
|
Ładowanie…
Reference in New Issue