# With Git bash, cannot create virtualenv with a nested path. #1582

Closed
opened this issue Feb 11, 2020 · 9 comments · Fixed by #1598
Closed

# With Git bash, cannot create virtualenv with a nested path.#1582

opened this issue Feb 11, 2020 · 9 comments · Fixed by #1598
Labels

### gaborbernat commented Feb 11, 2020

 If you don't make headway on this I'll look into it tomorrow why this fails, and if it would be possible to make it work 🤞if you can come up with a pr that would be epic though 👍

### vphilippon commented Feb 12, 2020

@gaborbernat Do you remember why you decided to explicitly dissalow os.altsep in the path?

Line 120 in 0e00194

 for char in (i for i in (os.pathsep, os.altsep) if i is not None):

524d95e

Did you hit some specific issues with it?
If I undertand correctly, it should be a valid path component.
https://docs.python.org/3.8/library/os.html#os.altsep

### gaborbernat commented Feb 12, 2020 • edited

 Some tools support altsep so using them might break things. To be fair this would only be an issue if the paths we write into the activation scripts are used in the altsep form. If you can add tests/validate that we normalize altsep to pathsep during the env creation I think we can remove this constraint.

### vphilippon commented Feb 12, 2020 • edited

 Some tools support altsep so using them might break things. I'm not sure I understand: Wouldn't it be the opposite: those tools support / just like \ on Windows, so having virtualenv support it wouldn't be an issue, right? If you can add tests/validate that we normalize altsep to pathsep [...] (emphasis mine) Could you be interpreting that os.altsep as something like os.altpathsep, i.e. that / acts like ; on Windows? If so, I think that's incorrect, / is an alternative to \ (once again, if my experience, and doc reading, is correct). Edit: Might be clearer like this: os.sep - os.altsep: pathname separator (ex: /, \) os.pathsep path separator (ex: :, ;)

### gaborbernat commented Feb 12, 2020

 Yeah I think you're right should be altpathsep

### vphilippon commented Feb 12, 2020

 Alright, glad this was cleared up :) Although, don't go searching for os.altpathsep, it doesn't exist :P. It was an example name to try and point the concept difference. Sorry about that. I can submit and MR, which essentially is a revert of 524d95e
mentioned this issue Feb 12, 2020