summaryrefslogtreecommitdiff
path: root/pyuno/source/module/pyuno_module.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'pyuno/source/module/pyuno_module.cxx')
-rw-r--r--pyuno/source/module/pyuno_module.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/pyuno/source/module/pyuno_module.cxx b/pyuno/source/module/pyuno_module.cxx
index 37345ee95368..d088e33d616e 100644
--- a/pyuno/source/module/pyuno_module.cxx
+++ b/pyuno/source/module/pyuno_module.cxx
@@ -347,11 +347,12 @@ static PyObject* initTestEnvironment(
css::uno::UNO_QUERY_THROW);
char *const testlib = getenv("TEST_LIB");
if (!testlib) { abort(); }
- OString const libname = OString(testlib, strlen(testlib))
#ifdef _WIN32
- .replaceAll(OString('/'), OString('\\'))
+ OString const libname = OString(testlib, strlen(testlib))
+ .replaceAll(OString('/'), OString('\\'));
+#else
+ OString const libname(testlib, strlen(testlib));
#endif
- ;
osl::Module &mod = runtime.getImpl()->cargo->testModule;
mod.load(OStringToOUString(libname, osl_getThreadTextEncoding()),