summaryrefslogtreecommitdiff
path: root/pyuno
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-04-20 00:52:48 +0200
committerMichael Stahl <mstahl@redhat.com>2013-04-21 15:00:51 +0200
commit288c8b9d59024897e88b55b9001f9922998d1302 (patch)
treea8edf353e4115489f695f5a6b0afd285c1d8687d /pyuno
parent849f87db1da8659bcc79b472c9411d7ceae26ede (diff)
adapt path for test.dll for WNT
Change-Id: I4d7cb081805213f55ae69c4ade8638bbfc06f0c4
Diffstat (limited to 'pyuno')
-rw-r--r--pyuno/source/module/pyuno_module.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/pyuno/source/module/pyuno_module.cxx b/pyuno/source/module/pyuno_module.cxx
index 9662958c87f2..06632c828f89 100644
--- a/pyuno/source/module/pyuno_module.cxx
+++ b/pyuno/source/module/pyuno_module.cxx
@@ -342,9 +342,13 @@ static PyObject* initPoniesMode(
if (!xMSF.is()) { abort(); }
char *const outdir = getenv("OUTDIR");
if (!outdir) { abort(); }
- OStringBuffer libname(outdir);
- libname.append("/lib/");
- libname.append(SAL_MODULENAME("test"));
+ OString const libname = (OString(OString(outdir, strlen(outdir)) +
+#ifdef _WIN32
+ "/bin/")).replaceAll(OString('/'), OString('\\'))
+#else
+ "/lib/"))
+#endif
+ + SAL_MODULENAME("test");
oslModule const mod( osl_loadModuleAscii(libname.getStr(),
SAL_LOADMODULE_LAZY | SAL_LOADMODULE_GLOBAL) );
if (!mod) { abort(); }