Skip to content

Commit

Permalink
Merge pull request #18 from polymonster/develop
Browse files Browse the repository at this point in the history
- improve formatting in console output
  • Loading branch information
polymonster authored Apr 19, 2023
2 parents 95eb875 + 44848c8 commit d5e8aa8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pmfx_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,19 +682,19 @@ def compile_shader_hlsl(info, src, stage, entry_point, temp_filepath, output_fil
if msg_type == "warning:":
err = squiggle_warning(err)

output += " " + err + "\n"
output += " " + err + "\n"
output = output.strip("\n").strip()
elif len(output_list) > 0:
# build output string from output message
output = "\n"
for out in output_list:
output += " " + out + "\n"
output += " " + out + "\n"
output = output.strip("\n").strip()
basename = os.path.basename(output_filepath)
if len(output) > 0:
print("compiling: {}\n{}".format(basename, output), flush=True)
print(" compiling: {}\n {}".format(basename, output), flush=True)
else:
print("compiling: {}".format(basename), flush=True)
print(" compiling: {}".format(basename), flush=True)
return error_code


Expand Down

0 comments on commit d5e8aa8

Please sign in to comment.