Final version should take the full path from configuration.
This commit is contained in:
parent
0561c5f901
commit
3252f54615
@ -10657,7 +10657,7 @@ static int vm_builtin_import(ph7_context *pCtx, int nArg, ph7_value **apArg) {
|
|||||||
SyStringInitFromBuf(&pModule.sName, zStr, nLen);
|
SyStringInitFromBuf(&pModule.sName, zStr, nLen);
|
||||||
unsigned char bfile[255] = {0};
|
unsigned char bfile[255] = {0};
|
||||||
unsigned char *file;
|
unsigned char *file;
|
||||||
snprintf(bfile, sizeof(bfile) - 1, "./%s%s", zStr, PH7_LIBRARY_SUFFIX);
|
snprintf(bfile, sizeof(bfile) - 1, "./binary/%s%s", zStr, PH7_LIBRARY_SUFFIX);
|
||||||
file = bfile;
|
file = bfile;
|
||||||
SyStringInitFromBuf(&pModule.sFile, file, nLen);
|
SyStringInitFromBuf(&pModule.sFile, file, nLen);
|
||||||
#ifdef __WINNT__
|
#ifdef __WINNT__
|
||||||
|
Loading…
x
Reference in New Issue
Block a user