python-dotenv icon indicating copy to clipboard operation
python-dotenv copied to clipboard

Manage Permission denied

Open pprados opened this issue 4 months ago • 1 comments

Il the access of .env file is refused, a PermissionError is raise.

It's the case with firejail to protect the access of .env files.

The code may tolerate this situation and continue to search another one.

pprados avatar Sep 01 '25 15:09 pprados

In main.py, update the line 55 with

if self.dotenv_path and os.path.isfile(self.dotenv_path) and os.access(self.dotenv_path,os.R_OK):

pprados avatar Sep 01 '25 15:09 pprados