MycroftAI / enclosure-picroft

Mycroft interface for Raspberry Pi environment
https://mycroft.ai/documentation/picroft
GNU Lesser General Public License v3.0
803 stars 191 forks source link

Ensure ~/.mycroft exists #141

Closed lbt closed 4 years ago

lbt commented 4 years ago

The directory ~/.mycroft does not exist in the pi user's home dir on a clean install.

This prevents the error: Then "INFO - building SkillEntry objects for all skills" failed with "FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.mycroft/skills.json'"

I have signed a CLA (Contributor Licensing Agreement)

krisgesling commented 4 years ago

Hey, welcome to Mycroft!

I believe this directory should get created by core, which it clearly didn't so will investigate that separately. Either way, it seems like a good thing to ensure it exists before trying to write to it here.

Thanks for the contribution! You've also been added to our list of excellent humans :smile: