-
I'm writing a CLI tool that will read a configuration file that should conform to a prescribed schema. I've written this schema to a file, and I am trying to figure out:
Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
sbrunner
Aug 18, 2022
Replies: 2 comments 1 reply
-
Personally, I put it in the code and use
In the I didn't find any issue with dev or production mode with this solution :-) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
t-mart
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Personally, I put it in the code and use
pkgutil.get_data("<module>", "<file>")
to get it.With Poetry I add:
In the
[tool.poetry]
of thepyproject.toml
.I didn't find any issue with dev or production mode with this solution :-)