interpreter script sets __file__ incorrectly

Bug #368447 reported by Wichert Akkerman on 2009-04-28
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

(copied from the discussion on zope-dev so it is archived here properly)

I want to keep my python install clean, so I do not have setuptools installed system-wide. Instead I have a small bin-directory managed by buildout which creates a python interpreter with setuptools, using this snippet:

recipe = zc.recipe.egg
interpreter = spython
eggs = setuptools
scripts = spython

That allows me to use "spython sdist register upload". is invoked with __file__ pointing to the spython wrapper script, so any attempt in to use __file__ to found files will fail.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers