summarylogtreecommitdiffstats
path: root/addon_path.patch
blob: c661f0d5cc80fb58dc028b57c850ac54f2568b8a (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
diff --git a/intern/ghost/intern/GHOST_SystemPathsUnix.cpp b/intern/ghost/intern/GHOST_SystemPathsUnix.cpp
index 8fd6aee28da..99d61882451 100644
--- a/intern/ghost/intern/GHOST_SystemPathsUnix.cpp
+++ b/intern/ghost/intern/GHOST_SystemPathsUnix.cpp
@@ -56,7 +56,7 @@ const GHOST_TUns8 *GHOST_SystemPathsUnix::getSystemDir(int, const char *versions
 {
   /* no prefix assumes a portable build which only uses bundled scripts */
   if (static_path) {
-    static string system_path = string(static_path) + "/blender/" + versionstr;
+    static string system_path = string(static_path) + "/blender/" + versionstr + "_@@_suffix@@";
     return (GHOST_TUns8 *)system_path.c_str();
   }
 
@@ -77,7 +77,7 @@ const GHOST_TUns8 *GHOST_SystemPathsUnix::getUserDir(int version, const char *ve
       last_version = version;
 
       if (home) {
-        user_path = string(home) + "/.blender/" + versionstr;
+        user_path = string(home) + "/.blender/" + versionstr + "_@@_suffix@@";
       }
       else {
         return NULL;
@@ -92,7 +92,7 @@ const GHOST_TUns8 *GHOST_SystemPathsUnix::getUserDir(int version, const char *ve
       last_version = version;
 
       if (home) {
-        user_path = string(home) + "/blender/" + versionstr;
+        user_path = string(home) + "/blender/" + versionstr + "_@@_suffix@@";
       }
       else {
         home = getenv("HOME");
@@ -100,7 +100,7 @@ const GHOST_TUns8 *GHOST_SystemPathsUnix::getUserDir(int version, const char *ve
         if (home == NULL)
           home = getpwuid(getuid())->pw_dir;
 
-        user_path = string(home) + "/.config/blender/" + versionstr;
+        user_path = string(home) + "/.config/blender/" + versionstr + "_@@_suffix@@";
       }
     }
 
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 8fb04c320a0..3102752ec97 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -303,15 +303,15 @@ endif()
 if(UNIX AND NOT APPLE)
   if(WITH_PYTHON_MODULE)
     if(WITH_INSTALL_PORTABLE)
-      set(TARGETDIR_VER ${BLENDER_VERSION})
+      set(TARGETDIR_VER ${BLENDER_VERSION}_@@_suffix@@)
     else()
-      set(TARGETDIR_VER ${PYTHON_SITE_PACKAGES}/${BLENDER_VERSION})
+      set(TARGETDIR_VER ${PYTHON_SITE_PACKAGES}/${BLENDER_VERSION}_@@_suffix@@)
     endif()
   else()
     if(WITH_INSTALL_PORTABLE)
-      set(TARGETDIR_VER ${BLENDER_VERSION})
+      set(TARGETDIR_VER ${BLENDER_VERSION}_@@_suffix@@)
     else()
-      set(TARGETDIR_VER share/blender/${BLENDER_VERSION})
+      set(TARGETDIR_VER share/blender/${BLENDER_VERSION}_@@_suffix@@)
     endif()
   endif()