Commit abc471a3 authored by jim's avatar jim

Adjust buildout script name for windows.


git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@71414 62d5b8a3-27da-0310-9561-8e5933582275
parent 33db40a6
......@@ -490,25 +490,16 @@ class Buildout(UserDict.DictMixin):
if not upgraded:
return
if (realpath(os.path.abspath(sys.argv[0]))
!=
realpath(
os.path.join(os.path.abspath(
self['buildout']['bin-directory']
),
'buildout',
)
)
):
should_run = realpath(
os.path.join(os.path.abspath(self['buildout']['bin-directory']),
'buildout')
)
if sys.platform == 'win32':
should_run += '-script.py'
if (realpath(os.path.abspath(sys.argv[0])) != should_run):
self._logger.debug("Running %r", realpath(sys.argv[0]))
self._logger.debug(
"Local buildout is %r",
realpath(
os.path.join(
os.path.abspath(self['buildout']['bin-directory']),
'buildout')
)
)
self._logger.debug("Local buildout is %r", should_run)
self._logger.warn("Not upgrading because not running a local "
"buildout command")
return
......
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