RadBlueDawg / Squire-Discord-Bot

MIT License
0 stars 0 forks source link

FileNotFound Error When Accessing Assets Directory #1

Closed RadBlueDawg closed 4 years ago

RadBlueDawg commented 4 years ago

I discovered the issue when trying to run Squire as a systemd service on a Rasberry Pi. The script will look for the external files in the same directory as the script is running. I'm unsure if this is an issue on Windows, but at least on UNIX systems the script will run in the directory it's called in, NOT the directory its placed in.

The best solution to research would be to add the path to the assets directory to the .evn file as an environment variable. It would also probably be best to relocate the .txt files to the assets directory.

RadBlueDawg commented 4 years ago

Fixed in dev