STINNER Victor <victor.stin...@haypocalc.com> added the comment:

Simpler patch replacing 1026 constant by MAXPATHLEN. On my Linux box, 
MAXPATHLEN is 4096 and os.pathconf('/', 'PC_PATH_MAX') returns 4096. I am able 
to get a path of 4095 bytes using the patch.

----------
Added file: http://bugs.python.org/file22394/os_getcwd_maxpathlen.patch

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

Reply via email to