Permalink
Browse files

Fix eucadmin binary python path mangling.

  • Loading branch information...
2 parents 29419a4 + 49e4c7f commit 1a516bce2fc9d543827a9749b07ff4e0c7d93eb6 wenye committed Apr 21, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 clc/eucadmin/setup.py
View
4 clc/eucadmin/setup.py
@@ -38,9 +38,9 @@
cfg = ConfigParser.ConfigParser()
cfg.read('setup.cfg')
-prefix = os.path.dirname(cfg.get('install', 'prefix'))
+prefix = cfg.get('install', 'prefix')
install_scripts = cfg.get('install', 'install_scripts')
-path_header = 'import sys\nsys.path.append(\"%s/%s\")\n' % (prefix, get_python_lib())
+path_header = 'import sys\nsys.path.append(\"%s\")\n' % (get_python_lib(prefix=prefix))
binaries = ["bin/euca-add-user", "bin/euca-add-user-group",
"bin/euca-delete-user", "bin/euca-delete-user-group",

0 comments on commit 1a516bc

Please sign in to comment.