[issue14088] sys.executable generating canonical path
Antonio Ribeiro
report at bugs.python.org
Wed Feb 22 17:36:57 CET 2012
New submission from Antonio Ribeiro <alvesjunior.antonio at gmail.com>:
Hi all,
As it is my first time here, I'll try to explay step-by-step why I'm providing this path, and why I think that it is changing something that I believe that is not correct.
First of all, I was trying to run one individual test, as the dev guide says:
./python -m test -v test_sys
but, instead of run this test from the root directory of the project, I run it from ./Lib/test, so I did:
../../python -m test -v test_sys
and it returned an error. The reason is that my sys.executable was not an abspath. When I went to see why it is different, I get this value to sys.executable:
sys.executable -> '/home/antonio/Projects/cpython/Lib/test/../../python'
I'm not sure if I'm thinking write, but for me don't look nice to have this value as sys.executable, once the real path should be:
'/home/antonio/Projects/cpython/python'
So I'm providing a paatch that do exactly this.
Hope you enjoy
----------
components: None
files: canonical_path.diff
keywords: patch
messages: 153970
nosy: alvesjnr
priority: normal
severity: normal
status: open
title: sys.executable generating canonical path
type: behavior
Added file: http://bugs.python.org/file24604/canonical_path.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14088>
_______________________________________
More information about the Python-bugs-list
mailing list