Skip to content

Commit 2a4ab81

Browse files
Fix for issue python#7998: pythonw didn't work when --with-framework-name was
specified
1 parent 4e62949 commit 2a4ab81

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎Mac/Makefile.in‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ install_versionedtools:
114114

115115

116116
pythonw: $(srcdir)/Tools/pythonw.c Makefile
117-
$(CC) $(LDFLAGS) -o $@ $(srcdir)/Tools/pythonw.c -I.. -I$(srcdir)/../Include ../$(PYTHONFRAMEWORK).framework/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
117+
$(CC) $(LDFLAGS) -DPYTHONFRAMEWORK='"$(PYTHONFRAMEWORK)"' -o $@ $(srcdir)/Tools/pythonw.c -I.. -I$(srcdir)/../Include ../$(PYTHONFRAMEWORK).framework/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
118118

119119
install_PythonLauncher:
120120
cd PythonLauncher && make install DESTDIR=$(DESTDIR)

‎Mac/Tools/pythonw.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ static char* get_python_path(void)
7979
if (end[1] == '.') {
8080
end++;
8181
}
82-
strcpy(end, "Resources/Python.app/Contents/MacOS/Python");
82+
strcpy(end, "Resources/Python.app/Contents/MacOS/" PYTHONFRAMEWORK);
8383

8484
return g_path;
8585
}

0 commit comments

Comments
 (0)