Skip to content
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

Importer should handle imports that are URLs #13

Open
camh- opened this issue Jun 18, 2020 · 0 comments
Open

Importer should handle imports that are URLs #13

camh- opened this issue Jun 18, 2020 · 0 comments

Comments

@camh-
Copy link
Member

camh- commented Jun 18, 2020

The importer handles file and https schemes, mapping normal file paths and netpaths onto these schemes. As the user of the importer can provide their own fetcher, they could handle other schemes themselves (such as internal: for wrappers around native functions for example).

The importer should check if files being imported have a scheme, and if so, assume they are absolute and not run them through the search path. It should also check for a scheme on the source parameter to Import to correctly get the directory of the source so scheme-relative imports can be done. It should also properly concatenate imports with elements of the search path that have a scheme (although I think that just works already as is).

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

No branches or pull requests

1 participant