Skip to content

why do you use read_config which reads yaml to read json ! #178

Answered by imhalcyon
abdelkareemkobo asked this question in Q&A
Discussion options

You must be logged in to vote

the read_config() itself read yaml files! not json ! can someone explain this for me!

yaml.safe_load can be used to read JSON : https://faun.pub/python-tips-working-with-json-vs-yaml-70c100ca458b

Also, the section that you're referring to was probably used for unit testing which is the reason for hard-coding resume JSON file path.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by abdelkareemkobo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants