Fix python formatting

This commit is contained in:
Susko3 2024-09-22 00:44:50 +01:00
parent 75c49e289e
commit 5fbda17ae9
1 changed files with 5 additions and 2 deletions

View File

@ -27,6 +27,7 @@ SDL3_header_base = "SDL3" # base folder of header files
csproj_root = repository_root / "SDL3-CS" csproj_root = repository_root / "SDL3-CS"
class Header: class Header:
"""Represents a SDL header file that is used in ClangSharp generation.""" """Represents a SDL header file that is used in ClangSharp generation."""
@ -130,20 +131,22 @@ headers = [
add("SDL3/SDL_vulkan.h"), add("SDL3/SDL_vulkan.h"),
] ]
def prepare_sdl_source(): def prepare_sdl_source():
subprocess.run([ subprocess.run([
"git", "git",
"reset", "reset",
"--hard", "--hard",
"HEAD" "HEAD"
], cwd = SDL_root) ], cwd=SDL_root)
subprocess.run([ subprocess.run([
"git", "git",
"apply", "apply",
"--3way", "--3way",
repository_root / "External" / "SDL-use-proper-types.patch" repository_root / "External" / "SDL-use-proper-types.patch"
], cwd = SDL_root) ], cwd=SDL_root)
def get_sdl_api_dump(): def get_sdl_api_dump():
subprocess.run([ subprocess.run([