Skip to content

Prioritize script directory for Import() resolution#170

Open
mburetorp wants to merge 1 commit intomatricks:masterfrom
mburetorp:pr-import
Open

Prioritize script directory for Import() resolution#170
mburetorp wants to merge 1 commit intomatricks:masterfrom
mburetorp:pr-import

Conversation

@mburetorp
Copy link

Fix annoying problem where you have nested bam.lua files that include each other.

For example given the directory tree A/B/C

/A/B $ bam -s C/bam.lua

If "C/bam.lua" imports "../bam.lua" but there also exists a "../bam.lua" relative to CWD it would prioritize bam.lua relative to CWD. Expected result from the script in C is to include B/bam.lua but instead it would include A/bam.lua

@mburetorp
Copy link
Author

To be honest I cannot think of any time you would want CWD as include search path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments