Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand All @@ -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')
Expand Down