Kaydet (Commit) 288c8b9d authored tarafından Michael Stahl's avatar Michael Stahl

adapt path for test.dll for WNT

Change-Id: I4d7cb081805213f55ae69c4ade8638bbfc06f0c4
üst 849f87db
......@@ -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(); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment