[issue36634] venv: activate.bat fails for venv with parentheses in PATH

2019-04-16 Thread Bastian Wenzel
Bastian Wenzel added the comment: Ok I think I found my problem. The system path of of my machine is ok but my user path contains a stray double quotation mark (") like this: C:\Program Files\Git\bin";C:\Tools\antlr;C:\Program Files (x86)\Common Files\Oracle\Java\javapath ... W

[issue36634] venv: activate.bat fails for venv with parentheses in PATH

2019-04-16 Thread Bastian Wenzel
Bastian Wenzel added the comment: So if I replace this section from venv's activate.bat: if defined _OLD_VIRTUAL_PATH ( set "PATH=%_OLD_VIRTUAL_PATH%" ) else ( set "_OLD_VIRTUAL_PATH=%PATH%" ) with the part from virtualenv's activate.bat: REM if defi

[issue36634] venv: activate.bat fails for venv with parentheses in PATH

2019-04-15 Thread Bastian Wenzel
Bastian Wenzel added the comment: I have attached the activate.bat script that got generated by venv. My current path looks like this (added line breaks for readability): C:\Program Files\Git\bin; C:\Tools\antlr; C:\Program Files (x86)\Common Files\Oracle\Java\javapath; C:\ProgramData\Oracle

[issue36634] venv: activate.bat fails for venv with parentheses in PATH

2019-04-15 Thread Bastian Wenzel
New submission from Bastian Wenzel : After creating a virtual environment on win 7 (64bit) with: py -3.7 -m venv venv Running venv\Scripts\activate.bat will yield this result: \Common was unexpected at this time. (venv) C:\... My PATH variable contains a path that starts with: C:\Program