Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/freestyle/intern/system')
-rwxr-xr-xsource/blender/freestyle/intern/system/FreestyleConfig.h4
-rwxr-xr-xsource/blender/freestyle/intern/system/PythonInterpreter.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/system/FreestyleConfig.h b/source/blender/freestyle/intern/system/FreestyleConfig.h
index 385f86e7d23..c483e2813ba 100755
--- a/source/blender/freestyle/intern/system/FreestyleConfig.h
+++ b/source/blender/freestyle/intern/system/FreestyleConfig.h
@@ -44,13 +44,15 @@ namespace Config {
// Directory separators
# ifdef WIN32
- static const string DIR_SEP("\\");
+ static const string DIR_SEP("\\\\");
static const string PATH_SEP(";");
# else
static const string DIR_SEP("/");
static const string PATH_SEP(":");
# endif // WIN32
+ // DLL import/export macros for Win32
+
# ifndef LIB_SYSTEM_EXPORT
# define LIB_SYSTEM_EXPORT
# endif // LIB_SYSTEM_EXPORT
diff --git a/source/blender/freestyle/intern/system/PythonInterpreter.h b/source/blender/freestyle/intern/system/PythonInterpreter.h
index 719b777f38d..e042eaa2f44 100755
--- a/source/blender/freestyle/intern/system/PythonInterpreter.h
+++ b/source/blender/freestyle/intern/system/PythonInterpreter.h
@@ -115,7 +115,7 @@ private:
for (vector<string>::const_iterator it = pathnames.begin(); it != pathnames.end();++it) {
if ( !it->empty() ) {
cout << "Adding Python path: " << *it << endl;
- cmd = "sys.path.append(\"" + *it + "\")\n";
+ cmd = "sys.path.append(r\"" + *it + "\")\n";
txt_insert_buf(text, const_cast<char*>(cmd.c_str()));
}
}