supporting run file for other folder

This commit is contained in:
lyon 2023-02-08 19:06:25 +08:00
parent dd61622277
commit f362df70c6

View File

@ -3662,7 +3662,9 @@ PikaObj* pikaVM_runFile(PikaObj* self, char* file_name) {
pika_platform_printf("(pikascript) all succeed.\r\n\r\n");
pikaMemMaxReset();
obj_linkLibraryFile(self, "pikascript-api/pikaModules_cache.py.a");
char* libfile_path =
strsPathJoin(&buffs, pwd, "pikascript-api/pikaModules_cache.py.a");
obj_linkLibraryFile(self, libfile_path);
self = pikaVM_runSingleFile(self, file_name);
strsDeinit(&buffs);
return self;