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: ...@@ -17,6 +17,9 @@ Bugs fixed:
- Option incrementing and decrementing didn't work for options - Option incrementing and decrementing didn't work for options
specified on the command line. 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) 1.4.0 (2009-08-26)
================== ==================
......
...@@ -1023,7 +1023,7 @@ relative_paths_setup = """ ...@@ -1023,7 +1023,7 @@ relative_paths_setup = """
import os import os
join = os.path.join 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, def _script(module_name, attrs, path, dest, executable, arguments,
......
...@@ -817,7 +817,7 @@ to pass a common base directory of the scripts and eggs: ...@@ -817,7 +817,7 @@ to pass a common base directory of the scripts and eggs:
import os import os
<BLANKLINE> <BLANKLINE>
join = os.path.join 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) base = os.path.dirname(base)
<BLANKLINE> <BLANKLINE>
import sys import sys
...@@ -849,7 +849,7 @@ We specified an interpreter and its paths are adjusted too: ...@@ -849,7 +849,7 @@ We specified an interpreter and its paths are adjusted too:
import os import os
<BLANKLINE> <BLANKLINE>
join = os.path.join 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) base = os.path.dirname(base)
<BLANKLINE> <BLANKLINE>
import sys import sys
......
...@@ -425,7 +425,7 @@ Let's look at the script that was generated: ...@@ -425,7 +425,7 @@ Let's look at the script that was generated:
import os import os
<BLANKLINE> <BLANKLINE>
join = os.path.join 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) base = os.path.dirname(base)
<BLANKLINE> <BLANKLINE>
import sys import sys
...@@ -472,7 +472,7 @@ each individual script section: ...@@ -472,7 +472,7 @@ each individual script section:
import os import os
<BLANKLINE> <BLANKLINE>
join = os.path.join 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) base = os.path.dirname(base)
<BLANKLINE> <BLANKLINE>
import sys 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