This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alvesjnr
Recipients alvesjnr
Date 2012-02-22.16:36:56
SpamBayes Score 1.2100344e-09
Marked as misclassified No
Message-id <1329928617.24.0.609517948319.issue14088@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2012-02-22 16:36:57alvesjnrsetrecipients: + alvesjnr
2012-02-22 16:36:57alvesjnrsetmessageid: <1329928617.24.0.609517948319.issue14088@psf.upfronthosting.co.za>
2012-02-22 16:36:56alvesjnrlinkissue14088 messages
2012-02-22 16:36:56alvesjnrcreate