Édouard Gilbert asked...<br><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">...I'm currently working on a project containing a little pstricks. As we're several people working on the file, I'fd rather avoid using %! comments in the beginning of the file. I was thus wondering if there was some way to set a project-wise environment variable to override the default engine.</blockquote>
<div><br>Have you checked that the switch doesn't happen automatically? I'm pretty sure that the  compile script checks for the existence of a \usepackage{pstricks} directive and will switch compiling to "latex" (ie, via dvi) in this case. Check out the log file to be sure. <br>
<br>Aah, here it is: you can see this implemented at about line 363 of  <br><br>/Applications/TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/texMate.py<br><br>Cheers,<br>Paul<br></div></div>