diff --git a/setupext.py b/setupext.py index 93585262c88f..a5b88064c238 100644 --- a/setupext.py +++ b/setupext.py @@ -1043,7 +1043,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 = getstatusoutput("freetype-config --ftversion")