Skip to content

Commit

Permalink
squash! Load environment variables from .ampy config file
Browse files Browse the repository at this point in the history
Fix problem identified by @jerryneedell
  • Loading branch information
garthk committed Jul 9, 2018
1 parent 3c68fd5 commit d04a52f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ampy/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit d04a52f

Please sign in to comment.