mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
This TODO is implemented now
This commit is contained in:
parent
81843b2b95
commit
2ffb413a46
1 changed files with 1 additions and 2 deletions
|
@ -460,9 +460,8 @@ def _hook_exec_python(path, args, env, loggers):
|
||||||
sys.path = [dir_] + sys.path
|
sys.path = [dir_] + sys.path
|
||||||
module = import_module(name)
|
module = import_module(name)
|
||||||
|
|
||||||
# TODO : We might want to check here that it's a tuple
|
|
||||||
# containing an int + a dict ?
|
|
||||||
ret = module.main(args, env, loggers)
|
ret = module.main(args, env, loggers)
|
||||||
|
# # Assert that the return is a (int, dict) tuple
|
||||||
assert isinstance(ret, tuple) \
|
assert isinstance(ret, tuple) \
|
||||||
and len(ret) == 2 \
|
and len(ret) == 2 \
|
||||||
and isinstance(ret[0],int) \
|
and isinstance(ret[0],int) \
|
||||||
|
|
Loading…
Add table
Reference in a new issue