diff options
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/module/pyuno_module.cxx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/pyuno/source/module/pyuno_module.cxx b/pyuno/source/module/pyuno_module.cxx index fc6868ab70a4..d9d510a8086b 100644 --- a/pyuno/source/module/pyuno_module.cxx +++ b/pyuno/source/module/pyuno_module.cxx @@ -346,15 +346,13 @@ static PyObject* initPoniesMode( xContext->getServiceManager(), com::sun::star::uno::UNO_QUERY_THROW); if (!xMSF.is()) { abort(); } - char *const outdir = getenv("OUTDIR"); - if (!outdir) { abort(); } - OString const libname = (OString(OString(outdir, strlen(outdir)) + + char *const testlib = getenv("TEST_LIB"); + if (!testlib) { abort(); } + OString const libname = OString(testlib, strlen(testlib)) #ifdef _WIN32 - "/bin/")).replaceAll(OString('/'), OString('\\')) -#else - "/lib/")) + .replaceAll(OString('/'), OString('\\')) #endif - + SAL_MODULENAME("test"); + ; oslModule const mod( osl_loadModuleAscii(libname.getStr(), SAL_LOADMODULE_LAZY | SAL_LOADMODULE_GLOBAL) ); if (!mod) { abort(); } |