# Detect vision or perspective

**URL:** <https://forum.inductiveautomation.com/t/detect-vision-or-perspective/44636>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [March 18, 2021, 2:50pm UTC](https://forum.inductiveautomation.com/t/detect-vision-or-perspective/44636 "2021-03-18T14:50:00Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [March 18, 2021, 5:24pm UTC](https://forum.inductiveautomation.com/t/detect-vision-or-perspective/44636/6 "2021-03-18T17:24:46Z")

</div>

> [@Way to print for both perspective and vision projects?](http://forum.inductiveautomation.com/t/way-to-print-for-both-perspective-and-vision-projects/34793/2):
>
> from \_\_future\_\_ import print\_function import \_\_builtin\_\_ from java.lang import IllegalArgumentException def print(\*objects, \*\*kwargs): sep = kwargs.pop("sep", ", ") end = kwargs.pop("end", "\n") message = sep.join(str(object) for object in objects) try: system.perspective.print(message) except IllegalArgumentException: system.util.getLogger("utils.print").info(message) except AttributeError: \_\_builtin\_\_.print(message, end=end) Dropped in a utils script module. I would definitely …

Might be helpful

---

_[View the full topic](https://forum.inductiveautomation.com/t/detect-vision-or-perspective/44636)._
