Jeremy Hylton writes: > fix bug #114290: when interpreter's argv[0] has a relative path make > it absolute by joining it with getcwd result. avoid including > unnecessary ./ in path but do not test for ../ (more complicated) ... > + else if (argv0_path[0] == '.') { > + getcwd(path, MAXPATHLEN); > + if (argv0_path[1] == '/') > + joinpath(path, argv0_path + 2); Did you test this when argv[0] is something like './/foo/bin/python'? -Fred -- Fred L. Drake, Jr. <fdrake at beopen.com> BeOpen PythonLabs Team Member
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4