Skip to content

.env file having '\' does not work properly #112

Description

@dhruvinsh

.env file with variable containing backward slash '' does not load properly,
For example, .env file with
test=hi\hello

and in python,

>>> from dotenv import load_dotenv
>>> load_dotenv()
True
>>> import os
>>> print os.getenv('test')
hi\\hello
>>> print repr(os.getenv('test'))
u'hi\\\\hello'

python-dotenv: 0.8.1
windows: 10
python: 2.7.14

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions