[pypy-dev] [pypy-commit] jitviewer argparse-collect: (RichardN, Edd) Add the jitviewer path to PYTHONPATH automatically.

Antonio Cuni anto.cuni at gmail.com
Fri Sep 6 16:56:37 CEST 2013


Hi Edd,

On 06/09/13 15:45, Edd Barrett wrote:

>> +script_path = os.path.abspath(__file__)
>> +pythonpath = os.path.dirname(os.path.dirname(script_path))
>> +sys.path.append(pythonpath)
>
> Here we are appending to the path, not overriding it, hence this is safe for
> either method. Right?

yes, if you do setup.py develop those lines are both safe and pointless :)
But I saw that you removed then in a later checkin, so no problem.

ciao,
Anto



More information about the pypy-dev mailing list