Commit 004b65b3 authored by jim's avatar jim

Fixed a bug in runsetup that caused setup scripts that introspected

__file__ to fail.


git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@70464 62d5b8a3-27da-0310-9561-8e5933582275
parent 229c145e
......@@ -638,6 +638,7 @@ class Buildout(dict):
setuptools=setuptools,
setupdir=os.path.dirname(setup),
setup=setup,
__file__ = setup,
))
os.spawnl(os.P_WAIT, sys.executable, sys.executable, tsetup,
*[zc.buildout.easy_install._safe_arg(a)
......@@ -651,6 +652,8 @@ import sys
sys.path.insert(0, %(setuptools)r)
import os, setuptools
__file__ = %(__file__)r
os.chdir(%(setupdir)r)
sys.argv[0] = %(setup)r
execfile(%(setup)r)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment