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 lemburg
Recipients lemburg, mark.dickinson, meador.inge, ronaldoussoren, tarek
Date 2010-02-24.11:21:39
SpamBayes Score 5.759822e-05
Marked as misclassified No
Message-id <1267010501.64.0.53446612457.issue7958@psf.upfronthosting.co.za>
In-reply-to
Content
Looking at the code, the whole approach to finding the project base appears to be very fragile.

I'd suggest to use a landmark file for finding the project base, say "Modules/main.c", and a function which searches all directories on the os.path.realpath(sys.executable) for this landmark file in order to determine the correct project directory (or none in case Python was not called from a Python build binary).

The special cases for PC builds could then be removed.
History
Date User Action Args
2010-02-24 11:21:41lemburgsetrecipients: + lemburg, ronaldoussoren, mark.dickinson, tarek, meador.inge
2010-02-24 11:21:41lemburgsetmessageid: <1267010501.64.0.53446612457.issue7958@psf.upfronthosting.co.za>
2010-02-24 11:21:40lemburglinkissue7958 messages
2010-02-24 11:21:39lemburgcreate