Zedtho / Smack

Smack is a smart, digital accountability partner that automatically blocks unproductive activities.
1 stars 0 forks source link

Add config file instead of relative directories #1

Closed Zedtho closed 4 days ago

Zedtho commented 1 week ago

Currently, environment variables and whiteblacklist.json (and in the future, system_message for the initial prompt) must be in the same directory as the executable. This makes the position of the executable quite annoying to handle, and so it's better if we put this in platform-specific config files.

I suggest using appdirs for this so that it's nice and platform-agnostic. I don't think it'll be necessary to put in a separate module given how small the footprint of appdirs is, but we'll see.

This issue is relevant for #3.

Zedtho commented 4 days ago

Resolved in 5d41c189af2d9a40d8d9bef5e72b6d6c5f22e4e0.