diff --git a/Mac/Makefile.in b/Mac/Makefile.in index 31d3b9f4227..5fb5cd46cc0 100644 --- a/Mac/Makefile.in +++ b/Mac/Makefile.in @@ -111,7 +111,7 @@ install_versionedtools: pythonw: $(srcdir)/Tools/pythonw.c Makefile - $(CC) $(LDFLAGS) -o $@ $(srcdir)/Tools/pythonw.c -I.. -I$(srcdir)/../Include ../$(PYTHONFRAMEWORK).framework/Versions/$(VERSION)/$(PYTHONFRAMEWORK) + $(CC) $(LDFLAGS) -DPYTHONFRAMEWORK='"$(PYTHONFRAMEWORK)"' -o $@ $(srcdir)/Tools/pythonw.c -I.. -I$(srcdir)/../Include ../$(PYTHONFRAMEWORK).framework/Versions/$(VERSION)/$(PYTHONFRAMEWORK) install_PythonLauncher: cd PythonLauncher && make install DESTDIR=$(DESTDIR) diff --git a/Mac/Tools/pythonw.c b/Mac/Tools/pythonw.c index bd50f5cec2e..5fc59b574a8 100644 --- a/Mac/Tools/pythonw.c +++ b/Mac/Tools/pythonw.c @@ -81,7 +81,7 @@ static char* get_python_path(void) if (end[1] == '.') { end++; } - strcpy(end, "Resources/Python.app/Contents/MacOS/Python"); + strcpy(end, "Resources/Python.app/Contents/MacOS/" PYTHONFRAMEWORK); return g_path; }