logoalt Hacker News

PurpleRamentoday at 10:14 AM1 replyview on HN

> you can't do imports by relative file path

Just add the targeted path to sys.path, or write your own importhandler. importlib might help there. But true, out of the box, imports in python3 are a bit wacky for more flexible usage.


Replies

IshKebabtoday at 11:47 AM

Both of those are horrible and break all tooling. Deno's imports work properly.

show 1 reply