Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

implemented the horible python_lib path hack

  • Loading branch information...
commit f8e5fc1d88ce93838af4c8d3d98d36b05b5da8ba 1 parent eee089e
@proffalken proffalken authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 cobbler/module_loader.py
View
4 cobbler/module_loader.py
@@ -37,7 +37,9 @@
cp = ConfigParser.ConfigParser()
cp.read("/etc/cobbler/modules.conf")
-plib = distutils.sysconfig.get_python_lib()
+# A hideous hack to make this work under Ubuntu
+# plib = distutils.sysconfig.get_python_lib() - the OLD Original Script
+plib = '/usr/local/lib/python2.6/dist-packages'
mod_path="%s/cobbler/modules" % plib
sys.path.insert(0, mod_path)
sys.path.insert(1, "%s/cobbler" % plib)
Please sign in to comment.
Something went wrong with that request. Please try again.