From d04a52f220fd572ed574d55c3aa805d38d48cbb5 Mon Sep 17 00:00:00 2001 From: Garth Kidd Date: Mon, 9 Jul 2018 20:28:45 +1000 Subject: [PATCH] squash! Load environment variables from .ampy config file Fix problem identified by @jerryneedell --- ampy/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ampy/cli.py b/ampy/cli.py index aab0416..18efcf9 100644 --- a/ampy/cli.py +++ b/ampy/cli.py @@ -31,7 +31,7 @@ # Load AMPY_PORT et al from .ampy file # Performed here because we need to beat click's decorators. -config = dotenv.find_dotenv(filename='.ampy') +config = dotenv.find_dotenv(filename='.ampy', usecwd=True) if config: dotenv.load_dotenv(dotenv_path=config)