How to include a local package,When I using igop
lx217197 opened this issue · comments
lx217197 commented
dir1/flie.go=package a xxxxx
dir2/file.go = package b import a xxxxxxx
lx217197 commented
igop.RunFile("main.go","dir2/file.go")
七叶 commented
use ctx.AddImportFile or ctx.AddImport
igop.TestAddImport
https://github.com/goplus/igop/blob/main/interp_test.go#L2230
igop.TestAddImportDir
https://github.com/goplus/igop/blob/main/interp_test.go#L2263
lx217197 commented
@visualfc I have seen the function and the sample,But the scripts dir are not always in my control. Is there a way to organize directories on the script code side