Commit 8b23563d authored by Jim Fulton's avatar Jim Fulton

- Fixed bug: when the relative paths option was used, relative paths

  could be inserted into sys.path if a relative path was used to run
  the generated script.
parent d14bdc8a
Change History
**************
1.2.2 (2009-06-19)
1.3.0 (2009-06-22)
==================
- Better Windows compatibility in test infrastructure.
......@@ -18,6 +18,9 @@ Change History
- Added an unload entry point for extensions.
- Fixed bug: when the relative paths option was used, relative paths
could be inserted into sys.path if a relative path was used to run
the generated script.
1.2.1 (2009-03-18)
==================
......
......@@ -1023,7 +1023,7 @@ relative_paths_setup = """
import os
join = os.path.join
base = os.path.dirname(__file__)
base = os.path.dirname(os.path.abspath(__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(__file__)
base = os.path.dirname(os.path.abspath(__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(__file__)
base = os.path.dirname(os.path.abspath(__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(__file__)
base = os.path.dirname(os.path.abspath(__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(__file__)
base = os.path.dirname(os.path.abspath(__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