MCPcopy Index your code
hub / github.com/theskumar/python-dotenv / dotenv

Method dotenv

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

Source from the content-addressed store, hash-verified

32 )
33 @line_magic
34 def dotenv(self, line):
35 args = parse_argstring(self.dotenv, line)
36 # Locate the .env file
37 dotenv_path = args.dotenv_path
38 try:
39 dotenv_path = find_dotenv(dotenv_path, True, True)
40 except IOError:
41 print("cannot find .env file")
42 return
43
44 # Load the .env file
45 load_dotenv(dotenv_path, verbose=args.verbose, override=args.override)
46
47
48def load_ipython_extension(ipython):

Callers

nothing calls this directly

Calls 2

find_dotenvFunction · 0.85
load_dotenvFunction · 0.85

Tested by

no test coverage detected