summaryrefslogtreecommitdiffstats
path: root/pykolab/cli
diff options
context:
space:
mode:
authorChristoph Erhardt <kolab@sicherha.de>2022-05-08 10:12:12 +0200
committerChristoph Erhardt <kolab@sicherha.de>2022-05-08 10:12:33 +0200
commitc2b69efbdd07a6c30dd9034745648c5e36f7dbd5 (patch)
tree36ede97e4e5a3f885e1394eb1df7317a556d44a5 /pykolab/cli
parent8add8bba35df98a087225bfa9f0c534702c3e51d (diff)
downloadpykolab-c2b69efbdd07a6c30dd9034745648c5e36f7dbd5.tar.gz
[Python 3] relative imports fixes (dynamic imports) Part 2
Summary: some more dynamic imports of relative path's found and dotted Reviewers: #pykolab_developers, sicherha Reviewed By: #pykolab_developers, sicherha Differential Revision: https://git.kolab.org/D3484
Diffstat (limited to 'pykolab/cli')
-rw-r--r--pykolab/cli/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/cli/commands.py b/pykolab/cli/commands.py
index 16ef753..072c346 100644
--- a/pykolab/cli/commands.py
+++ b/pykolab/cli/commands.py
@@ -130,7 +130,7 @@ def execute(cmd_name, *args, **kw):
else:
command_name = commands[cmd_name]['cmd_name']
try:
- exec("from cmd_%s import cli_options as %s_cli_options" % (command_name,command_name))
+ exec("from .cmd_%s import cli_options as %s_cli_options" % (command_name,command_name))
exec("%s_cli_options()" % (command_name))
except ImportError:
pass