Skip to content

Commit 2fa7718

Browse files
committed
Fix
1 parent 132fed4 commit 2fa7718

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/python/generate_stubs.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ def get_colored_diff(old_text: str, new_text: str):
177177
sys.exit(1)
178178

179179
dest_path = out_path.joinpath("OpenImageIO", "__init__.pyi")
180+
print(f"Renaming to {dest_path}")
181+
os.rename(source_path, dest_path)
180182

181183
if "GITHUB_ACTIONS" in os.environ and args.validate_path:
182184
validate_path = pathlib.Path(args.validate_path)
@@ -194,6 +196,3 @@ def get_colored_diff(old_text: str, new_text: str):
194196
print(get_colored_diff(old_text, new_text))
195197
print("Run `make pystubs` locally and commit the results for review.")
196198
sys.exit(2)
197-
else:
198-
print(f"Renaming to {dest_path}")
199-
os.rename(source_path, dest_path)

0 commit comments

Comments
 (0)