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

Function enumerate_env

src/dotenv/cli.py:20–31  ·  view source on GitHub ↗

Return a path for the ${pwd}/.env file. If pwd does not exist, return None.

()

Source from the content-addressed store, hash-verified

18
19
20def enumerate_env():
21 """
22 Return a path for the ${pwd}/.env file.
23
24 If pwd does not exist, return None.
25 """
26 try:
27 cwd = os.getcwd()
28 except FileNotFoundError:
29 return None
30 path = os.path.join(cwd, '.env')
31 return path
32
33
34@click.group()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected