-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modules: add relative path support to import.file #789
Conversation
…l context to the module. The scope has one value "module_path" that represents the dir path of the current module. It can be used in combination with the path_join stdlib function to import modules via relative path.
- import file in import file with relative path - import folder in import folder with relative path - import file in import string with relative path
538437d
to
000b538
Compare
This PR has not had any activity in the past 30 days, so the |
I revived this PR in #1726 |
PR Description
This PR introduces an ArgScope to the loader that will be used as a parent scope when evaluating the nodes in the module. For now, it contains only one variable "module_path" that represents the current path of the module and can be used in the config. It also adds the stdlib function "path_join". Both can be used together to configure a relative path on the import.file block.
The following use-cases are currently supported:
Which issue(s) this PR fixes
Fixes #786
Notes to the Reviewer
The PR can be reviewed commit by commit.
PR Checklist