If genpluginprojects is called from fullbuild we set the Python source directory to be the same as fullbuild uses (in stead of using the default sys.prefix). This fixes an issue Mark Day raised that you can't use fullbuild with one Python installation to build another one.

This commit is contained in:
Jack Jansen 2001-08-16 20:39:17 +00:00
parent 214a0b1382
commit e791a6421f
2 changed files with 5 additions and 1 deletions

View File

@ -18,6 +18,7 @@ import MacOS
import EasyDialogs
import re
import string
import genpluginprojects
import aetools
import AppleEvents
@ -377,6 +378,8 @@ def main():
if not ok:
sys.exit(0)
dir = dir.as_pathname()
# Set genpluginprojects to use this folder (slight hack)
genpluginprojects.PYTHONDIR = dir
todo = handle_dialog(os.path.join(dir, MACBUILDNO))

View File

@ -3,7 +3,8 @@ import sys
import os
import string
PROJECTDIR = os.path.join(sys.prefix, ":Mac:Build")
PYTHONDIR = sys.prefix
PROJECTDIR = os.path.join(PYTHONDIR, ":Mac:Build")
MODULEDIRS = [ # Relative to projectdirs
"::Modules:%s",
"::Modules",