Page MenuHomePhorge

D3427.1775213292.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D3427.1775213292.diff

diff --git a/pykolab/cli/commands.py b/pykolab/cli/commands.py
--- a/pykolab/cli/commands.py
+++ b/pykolab/cli/commands.py
@@ -45,7 +45,7 @@
cmd_name = module_name.replace('cmd_', '')
#print "exec(\"from %s import __init__ as %s_register\"" % (module_name,cmd_name)
try:
- exec("from %s import __init__ as %s_register" % (module_name,cmd_name))
+ exec("from .%s import __init__ as %s_register" % (module_name,cmd_name))
except ImportError:
pass
@@ -122,7 +122,7 @@
group = commands[cmd_name]['group']
command_name = commands[cmd_name]['cmd_name']
try:
- exec("from %s.cmd_%s import cli_options as %s_%s_cli_options" % (group,command_name,group,command_name))
+ exec("from .%s.cmd_%s import cli_options as %s_%s_cli_options" % (group,command_name,group,command_name))
exec("%s_%s_cli_options()" % (group,command_name))
except ImportError:
pass
@@ -152,7 +152,7 @@
module_name = filename.replace('.py','')
cmd_name = module_name.replace('cmd_', '')
#print "exec(\"from %s.%s import __init__ as %s_%s_register\"" % (module,module_name,module,cmd_name)
- exec("from %s.%s import __init__ as %s_%s_register" % (module,module_name,module,cmd_name))
+ exec("from .%s.%s import __init__ as %s_%s_register" % (module,module_name,module,cmd_name))
exec("%s_%s_register()" % (module,cmd_name))
def register(cmd_name, func, group=None, description=None, aliases=[]):

File Metadata

Mime Type
text/plain
Expires
Fri, Apr 3, 10:48 AM (21 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18778239
Default Alt Text
D3427.1775213292.diff (1 KB)

Event Timeline