Skip to content

Commit 5bcd973

Browse files
committed
Prioritize script directory for Import() resolution
1 parent 4a871bd commit 5bcd973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/base.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ end
455455
[ModuleFilename] function.
456456
@END]]--
457457
function Import(filename)
458-
local paths = {"", PathDir(ModuleFilename())}
458+
local paths = {PathDir(ModuleFilename()), ""}
459459

460460
local s = os.getenv("BAM_PACKAGES")
461461
if s then

0 commit comments

Comments
 (0)