mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Do not use percent format
This commit is contained in:
parent
b17f1e507b
commit
7d81cbd0ed
|
@ -415,7 +415,9 @@ class TestEmbeddable:
|
|||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
char *home = "%s";
|
||||
char *home = \""""
|
||||
+ sys.prefix.replace("\\", "\\\\")
|
||||
+ """\";
|
||||
wchar_t *whome = Py_DecodeLocale(home, NULL);
|
||||
Py_SetPythonHome(whome);
|
||||
|
||||
|
@ -432,7 +434,6 @@ int main(int argc, char* argv[])
|
|||
return 0;
|
||||
}
|
||||
"""
|
||||
% sys.prefix.replace("\\", "\\\\")
|
||||
)
|
||||
|
||||
compiler = getattr(build_ext, "new_compiler")()
|
||||
|
|
Loading…
Reference in New Issue
Block a user