Ronald Oussoren <ronaldousso...@mac.com> added the comment:

I've attached a new version of the patch:

* copy to tmp buffer instead of argv0_buffer (see comment by Ned)

* add include in pythonw.c to avoid compiler warning

* use _Py_char2wchar instead of blindly casting a char* to a wchar_t*


The behavior is not perfect yet, sys.executable is set to the wrong value (both 
with and without --symlinks).  I haven't checked yet if the value is correct 
without my patch.

----------
Added file: http://bugs.python.org/file26364/venv-symlinks-v2.txt

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15307>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to