[Python-ideas] sys.path is a hack - bringing it back under control

Nick Coghlan ncoghlan at gmail.com
Mon Feb 20 11:38:58 CET 2012

On Mon, Feb 20, 2012 at 7:47 PM, anatoly techtonik <techtonik at gmail.com> wrote:
> Hi,
> I often find this in my scripts/projects, that I run directly from checkout:
> DEVPATH = os.path.dirname(os.path.abspath(__file__))
> sys.path.insert(0, DEVPATH)

PEP 395 describes my current plan to fix sys.path initialisation
(however, I can't yet promise that it will make it into 3.3, since it
doesn't even have a reference implementation yet, and I have several
other things I want to get done first).


Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia

More information about the Python-ideas mailing list