Here's the steps to reproduce:
- In a .env file, write:
- In a python module, write:
import dotenv
dotenv_path = r"path\to\.env"
print(dotenv.dotenv_values(dotenv_path))
You'll get OrderedDict([('VAR1', 'abs\x0basdf\\path')]), where it should be OrderedDict([('VAR1', 'abs\\vasdf\\path')]).
I searched for the "x0b" unicode and it's a vertical tab, that can be obtained with "\x0b" or "\v" in python.
I'm using windows 11 and the last version of python-dotenv (1.1.0)