Commit 1effb226 authored by jim's avatar jim

Bug fixed:

  Scripts generated with relative-paths eanbled couldn't be
  symbolocally linked to other locations and still work.


git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@103352 62d5b8a3-27da-0310-9561-8e5933582275
parent ab3f7aca
......@@ -17,6 +17,9 @@ Bugs fixed:
- Option incrementing and decrementing didn't work for options
specified on the command line.
- Scripts generated with relative-paths eanbled couldn't be
symbolocally linked to other locations and still work.
1.4.0 (2009-08-26)
==================
......
......@@ -1023,7 +1023,7 @@ relative_paths_setup = """
import os
join = os.path.join
base = os.path.dirname(os.path.abspath(__file__))
base = os.path.dirname(os.path.abspath(os.path.realpath(__file__)))
"""
def _script(module_name, attrs, path, dest, executable, arguments,
......
......@@ -817,7 +817,7 @@ to pass a common base directory of the scripts and eggs:
import os
<BLANKLINE>
join = os.path.join
base = os.path.dirname(os.path.abspath(__file__))
base = os.path.dirname(os.path.abspath(os.path.realpath(__file__)))
base = os.path.dirname(base)
<BLANKLINE>
import sys
......@@ -849,7 +849,7 @@ We specified an interpreter and its paths are adjusted too:
import os
<BLANKLINE>
join = os.path.join
base = os.path.dirname(os.path.abspath(__file__))
base = os.path.dirname(os.path.abspath(os.path.realpath(__file__)))
base = os.path.dirname(base)
<BLANKLINE>
import sys
......
......@@ -425,7 +425,7 @@ Let's look at the script that was generated:
import os
<BLANKLINE>
join = os.path.join
base = os.path.dirname(os.path.abspath(__file__))
base = os.path.dirname(os.path.abspath(os.path.realpath(__file__)))
base = os.path.dirname(base)
<BLANKLINE>
import sys
......@@ -472,7 +472,7 @@ each individual script section:
import os
<BLANKLINE>
join = os.path.join
base = os.path.dirname(os.path.abspath(__file__))
base = os.path.dirname(os.path.abspath(os.path.realpath(__file__)))
base = os.path.dirname(base)
<BLANKLINE>
import sys
......
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