MCPcopy Create free account
hub / github.com/theskumar/python-dotenv / dotenv

Method dotenv

src/dotenv/ipython.py:23–34  ·  view source on GitHub ↗
(self, line)

Source from the content-addressed store, hash-verified

21 help='Search in increasingly higher folders for the `dotenv_path`')
22 @line_magic
23 def dotenv(self, line):
24 args = parse_argstring(self.dotenv, line)
25 # Locate the .env file
26 dotenv_path = args.dotenv_path
27 try:
28 dotenv_path = find_dotenv(dotenv_path, True, True)
29 except IOError:
30 print("cannot find .env file")
31 return
32
33 # Load the .env file
34 load_dotenv(dotenv_path, verbose=args.verbose, override=args.override)
35
36
37def load_ipython_extension(ipython):

Callers 6

test_get_default_pathFunction · 0.80
test_runFunction · 0.80
test_run_with_none_valueFunction · 0.80
test_run_with_other_envFunction · 0.80

Calls 2

find_dotenvFunction · 0.85
load_dotenvFunction · 0.85

Tested by 6

test_get_default_pathFunction · 0.64
test_runFunction · 0.64
test_run_with_none_valueFunction · 0.64
test_run_with_other_envFunction · 0.64