summaryrefslogtreecommitdiff
blob: 934443f9870746428e2cbf43a7f2994eef237708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Index: wstool-0.1.13/setup.py
===================================================================
--- wstool-0.1.13.orig/setup.py
+++ wstool-0.1.13/setup.py
@@ -26,18 +26,11 @@ def _resolve_prefix(prefix, type):
     # issue: https://github.com/vcstools/wstool/issues/81
     osx_system_prefix = '/System/Library/Frameworks/Python.framework/Versions'
     if type == 'man':
-        if prefix == '/usr':
-            return '/usr/share'
-        if sys.prefix.startswith(osx_system_prefix):
-            return '/usr/local/share'
+        return os.path.join(prefix, 'share')
     elif type == 'bash_comp':
-        if prefix == '/usr':
-            return '/'
-        if sys.prefix.startswith(osx_system_prefix):
-            return '/usr/local'
+        return os.path.join(prefix, '../')
     elif type == 'zsh_comp':
-        if sys.prefix.startswith(osx_system_prefix):
-            return '/usr/local'
+        return os.path.join(prefix, '../')
     else:
         raise ValueError('not supported type')
     return prefix