Skip to content

Commit

Permalink
Allow custom location of environment file
Browse files Browse the repository at this point in the history
  • Loading branch information
eddienko committed Sep 21, 2021
1 parent be3c994 commit 428fa75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion merlin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

from merlin.core import dataset

envPath = os.path.join(os.path.expanduser('~'), '.merlinenv')
envPath = os.path.join(
os.getenv("MERLIN_ENV_PATH") or os.path.expanduser("~"), ".merlinenv"
)

if os.path.exists(envPath):
dotenv.load_dotenv(envPath)
Expand Down

0 comments on commit 428fa75

Please sign in to comment.