Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/igniscad/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ def _show_yacv_model(model: Model, force: bool) -> bool:
yacv_show(target_obj, names=[model.name])

url = "http://localhost:32323"
print(f"Sent to YACV (Check your browser, at {url})")
print(f"Sent to YACV (Check your browser, at {url})")

if not (webbrowser.open(url) or force):
return False # Fallback
else:
get_logger(__name__).error("Browser unavailable.(try using fallback mode)")

input("Press Enter to exit...")
input("Press Enter to exit...")
return True


Expand All @@ -47,8 +47,8 @@ def _export_stl_file(model: Model) -> None:
model.part = model.wrap_result(model.part) # Necessary: wrap everything into compound.
bd.export_stl(model.part, filename)
abs_path = os.path.abspath(filename)
print(f"💾 Saved: {abs_path}")
print("👉 You can open this file with 3D Viewer Applications.")
print(f"Saved: {abs_path}")
print("You can open this file with 3D Viewer Applications.")

from contextlib import suppress
with suppress(Exception):
Expand Down