In #53, elsametric started using the environs package to access environment variables. If, however, elsametric is called from another module, environs cannot find the required .env file, unless a specific path is supplied.
Suggested solution
Replace the line
env.read_env()
inside __init__.py with the one below:
env.read_env(path=Path.cwd())
Note that it may be needed to import Path from the pathlib library.
Bug description
In #53,
elsametric
started using theenvirons
package to access environment variables. If, however,elsametric
is called from another module,environs
cannot find the required.env
file, unless a specific path is supplied.Suggested solution
Replace the line
inside
__init__.py
with the one below:Note that it may be needed to import
Path
from thepathlib
library.