diff --git a/setup.py b/setup.py index e425634fb..41a6d0748 100644 --- a/setup.py +++ b/setup.py @@ -46,8 +46,8 @@ def build_module (self, module, module_file, package): lib_dir = iobj.install_lib base = iobj.install_data if (iobj.root): - lib_dir = lib_dir[len(iobj.root):] - base = base[len(iobj.root):] + lib_dir = lib_dir[len(iobj.root)-1:] + base = base[len(iobj.root)-1:] base = os.path.join(base, 'share') data_dir = os.path.join(base, 'gourmet') @@ -59,6 +59,9 @@ def build_module (self, module, module_file, package): line = "lib_dir = '%s'\n" % lib_dir elif "data_dir = " in line: line = "data_dir = '%s'\n" % data_dir + elif "ui_base = " in line: + line = "ui_base = '%s'\n" % \ + os.path.join(data_dir, 'ui') elif "doc_base = " in line: line = "doc_base = '%s'\n" % \ os.path.join(base, 'doc', 'gourmet')