<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 9, 2015 at 4:37 AM, Maxin B. John <span dir="ltr"><<a href="mailto:maxin.john@enea.com" target="_blank">maxin.john@enea.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":1ax" class="a3s" style="overflow:hidden">+ try:<br>
+ gtk.init_check()<br>
+ except:<br>
+ print "Please set DISPLAY variable before running this command."<br>
+ sys.exit(1)<br>
+</div></blockquote></div><br>It's good that you're fixing this, but 1) this uses the old style non-function print, which isn't supported in new python, and 2) it outputs the error message to stdout rather than stderr, and 3) it looks like just returning rather than exiting is likely the best move.<br>-- <br><div class="gmail_signature">Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics</div>
</div></div>