pypa / pipfile

Other
3.24k stars 144 forks source link

Fix Pipfile.find method returning invalid path for Windows OS #60

Closed AleksanderGondek closed 7 years ago

AleksanderGondek commented 7 years ago

Find method on Pipfile class, returns incorrectly formatted path to file on Windows OS. This makes pipenv tool, unable to create venv.

Before change:

In [1]: import pipfile
In [2]: pipfile.Pipfile.find()
Out[2]: 'C:\\Users\\<username>\\Documents\\directory\\subdirectory/Pipfile'

After change:

In [1]: import pipfile
In [2]: pipfile.Pipfile.find()
Out[2]: 'C:\\Users\\<username>\\Documents\\directory\\subdirectory\\Pipfile'
kennethreitz commented 7 years ago

✨🍰✨