<div dir="ltr">On my linux system (gentoo) QGis 2.18 is using the system python which is set to Python 3 whereas on my windows system QGis 2.18 is using the bundled Python 2.<div><br></div><div>This lead to me to start to look for which Python is used in processing scripts leading to lines such as:</div><div><br></div><div>http_server = ('SimpleHTTPServer', 'http.server')[sys.version_info.major == 2]<br></div><div><br></div><div>With QGis 3 using Python 3 (I believe), there be will be a desire to write scripts and plugins which are compatible with both Python 2 and Python 3.</div><div><br></div><div>Is there a recommendation of how to accomplish this compatibility ?</div><div><br></div><div>Or is the general recommendation to have and maintain separate programs for each version ? I suspect the answer is yes here but perhaps there are other approaches.</div><div><br></div><div>Any insight or comment much appreciated,</div><div><br></div><div>-Andreas</div><div><div><br></div><div><br></div>-- <br><div class="gmail_signature">Andreas Plesch<br>39 Barbara Rd.<br>Waltham, MA 02453</div>
</div></div>