diff --git a/setupext.py b/setupext.py index 582c7d89c9da..d52cfa3e7f40 100644 --- a/setupext.py +++ b/setupext.py @@ -950,7 +950,7 @@ def check(self): try: check_include_file(get_include_dirs(), 'ft2build.h', 'freetype') except CheckFailed: - check_include_file(get_include_dirs(), 'freetype2\\ft2build.h', 'freetype') + check_include_file(get_include_dirs(), os.path.join('freetype2', 'ft2build.h'), 'freetype') return 'Using unknown version found on system.' status, output = subprocess.getstatusoutput(