Skip to content

Commit

Permalink
[#370] Updated DisplayCAL.wxVRML2X3D code formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
eoyilmaz committed Sep 27, 2024
1 parent 14933b9 commit 46602d4
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions DisplayCAL/wxVRML2X3D.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,12 @@ def main():
)
if result is None:
print("No filename given.")
if sys.stdout and hasattr(sys.stdout, "isatty") and sys.stdout.isatty() and "--batch" not in sys.argv[1:]:
if (
sys.stdout
and hasattr(sys.stdout, "isatty")
and sys.stdout.isatty()
and "--batch" not in sys.argv[1:]
):
input("Press RETURN to exit")
sys.exit(int(not result))
else:
Expand Down Expand Up @@ -264,9 +269,11 @@ def vrmlfile2x3dfile(
if worker:
worker.clear_cmd_output()
worker.start(
lambda result: show_result_dialog(result, wx.GetApp().GetTopWindow())
if isinstance(result, Exception)
else result and view and launch_file(finalpath),
lambda result: (
show_result_dialog(result, wx.GetApp().GetTopWindow())
if isinstance(result, Exception)
else result and view and launch_file(finalpath)
),
x3dom.vrmlfile2x3dfile,
wargs=(vrmlpath, x3dpath, html, embed, force, cache, worker),
progress_title=lang.getstr("vrml_to_x3d_converter"),
Expand Down

0 comments on commit 46602d4

Please sign in to comment.