Another noob question: importing hyrule from outside hyrule dir #2148
Unanswered
Pinjontall94
asked this question in
Q&A
Replies: 2 comments 1 reply
-
See https://raw.githubusercontent.com/hylang/hy/949e07b4abf639f911dfbda779d2eab2b2ecb62a/docs/api.rst line 599, or https://docs.hylang.org/en/master/api.html#import in the current generated documentation. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Oh, thanks for responding, @Kodiologist! Importing works, but it looks like the only way to do so is if the hyrule repo is in the same directory as my hy code. Is that what you do, or do you append the python path? Neither of those seem idiomatic for python or hy, so I figured I was probably doing something weird. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm super green to this whole thing, but how do you import hyrule macros into a folder other than the downloaded hyrule repo itself? As I understand, I'd normally just use a "from x import x.y" statement, but I'm not sure how that works in Hy. Any help would be very much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions