Skip to content

Commit 6c57928

Browse files
committed
Merge pull request godotengine#90450 from akien-mga/scons-fix-scu-windows
SCons: Fix SCU build regression on Windows
2 parents 0993df8 + 9ad140f commit 6c57928

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scu_builders.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ def clear_out_stale_files(output_folder, extension, fresh_files):
2323
return
2424

2525
for file in glob.glob(output_folder + "/*." + extension):
26+
file = Path(file)
2627
if not file in fresh_files:
27-
# print("removed stale file: " + file)
28+
# print("removed stale file: " + str(file))
2829
os.remove(file)
2930

3031

@@ -97,7 +98,7 @@ def write_output_file(file_count, include_list, start_line, end_line, output_fol
9798
elif _verbose:
9899
print("SCU: Generation not needed for: " + short_filename)
99100

100-
return output_filename
101+
return output_path
101102

102103

103104
def write_exception_output_file(file_count, exception_string, output_folder, output_filename_prefix, extension):
@@ -124,7 +125,7 @@ def write_exception_output_file(file_count, exception_string, output_folder, out
124125
elif _verbose:
125126
print("SCU: Generation not needed for: " + short_filename)
126127

127-
return output_filename
128+
return output_path
128129

129130

130131
def find_section_name(sub_folder):

0 commit comments

Comments
 (0)