summaryrefslogtreecommitdiffstats
path: root/cobbler/modules/cli_misc.py
diff options
context:
space:
mode:
authorJohn Eckersberg <jeckersb@redhat.com>2009-02-10 14:28:23 -0500
committerJohn Eckersberg <jeckersb@redhat.com>2009-02-10 14:28:23 -0500
commit6fb21c413814e1603faed839eca773197c964d5c (patch)
treea0cd98d267e653a5a1e09a69a4aad357daad3696 /cobbler/modules/cli_misc.py
parent6b2ed2dfee492d99df13c8bf07ebf06d3d28390c (diff)
downloadcobbler-6fb21c413814e1603faed839eca773197c964d5c.tar.gz
cobbler-6fb21c413814e1603faed839eca773197c964d5c.tar.xz
cobbler-6fb21c413814e1603faed839eca773197c964d5c.zip
Explicitly import 'cobbler.commands' instead of just 'commands' in cli_*.py
This avoids namespace issues with the standard library commands module: http://docs.python.org/library/commands.html For me this was causing ipython to fail when attempting to boot the cobbler API.
Diffstat (limited to 'cobbler/modules/cli_misc.py')
-rw-r--r--cobbler/modules/cli_misc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cobbler/modules/cli_misc.py b/cobbler/modules/cli_misc.py
index 14e61ff5..df6f47f3 100644
--- a/cobbler/modules/cli_misc.py
+++ b/cobbler/modules/cli_misc.py
@@ -21,7 +21,7 @@ mod_path="%s/cobbler" % plib
sys.path.insert(0, mod_path)
from utils import _
-import commands
+import cobbler.commands as commands
from cexceptions import *
HELP_FORMAT = commands.HELP_FORMAT