<div dir="ltr">I'd sure like to hear from the person who makes the Windows Build for Scribus (a project I had been diligently pursuing using the open source win-build) comment on this. I do not want to post something on the wiki only to have some knowledgeable person point out that my hack creates a problem, risks corrupted or nonconforming xml, or a host of other possible bugs. <br><br>I do not know to what extent the included Python interpreter interacts with Scribus. Is it there only for scripting?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 30, 2015 at 12:52 PM, Joao S. O. Bueno <span dir="ltr"><<a href="mailto:gwidion@gmail.com" target="_blank">gwidion@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">That is great - it could be made a documentation entry - or otherwise<br>
be put in some visible web place. This is the kind of thing that<br>
could be easier to do for Windows users.<br>
<div class="HOEnZb"><div class="h5"><br>
On 30 May 2015 at 12:05, John L. Poole <<a href="mailto:jlpoole56@gmail.com">jlpoole56@gmail.com</a>> wrote:<br>
> I wanted the ability to transact with postgreSQL from within Scribus<br>
> and the Python Interpreter shipped with Scribus does not contain<br>
> the postgreSQL module: psycopg2<br>
><br>
> So, as I wrote earlier today, I hacked the Windows build to use<br>
> my installed Python vs. that shipped with the build.<br>
><br>
> Others may want to do the same, so I have created a Windows batch file<br>
> that accomplishes the necessary substitutions.<br>
><br>
> Here is the script:<br>
> -------------------------------------------<br>
> @echo off<br>
> ::<br>
> :: special run of Scribus that uses Python installed on the<br>
> :: users system that matches the build of the Python interpreter<br>
> :: shipped with Scribus rather than the Python Interpreter shipped<br>
> :: with Scribus' build.<br>
> ::<br>
> :: See: http...wiki....[Windows Replacing Shipped Python Interpreter]<br>
> ::<br>
> echo.<br>
> echo Running Scribus ***without*** its shipped Python Interpreter<br>
> echo.<br>
> ::<br>
> :: Hide the shipped version of the Python interpreter so Scribus will<br>
> use<br>
> :: the "same" version we have built on Windows<br>
> ::<br>
> if exist python (<br>
> echo masking Scribus Python directory<br>
> ren python python.SUSPEND<br>
> )<br>
> if exist python27.dll (<br>
> echo masking Scribus library python.dll<br>
> ren python27.dll python27.dll.SUSPEND<br>
> )<br>
> echo.<br>
> ::<br>
> :: point to our custom Python which should match the build of<br>
> :: Python shipped with this version of Scribus<br>
> :: See:<br>
> ::<br>
> PATH=C:\Python278;.<br>
> ::<br>
> :: run it!<br>
> ::<br>
> echo.<br>
> echo Launching Scribus...<br>
> scribus.exe<br>
> echo.<br>
> ::<br>
> :: undo our temporary masks so we don't run Scribus in the future<br>
> :: forgetting that we have this special hack to replace the Python<br>
> :: interpreter shipped with it<br>
> ::<br>
> if exist python.SUSPEND (<br>
> echo restoring Scribus Python directory<br>
> ren python.SUSPEND python<br>
> )<br>
> if exist python27.dll.SUSPEND (<br>
> echo restoring Scribus library python.dll<br>
> ren python27.dll.SUSPEND python27.dll<br>
> )<br>
> echo.<br>
> ::<br>
> :: remind our user that we're cleaning up<br>
> ::<br>
> pause<br>
><br>
> -------------------------------------------<br>
><br>
> Before I go public with this on the Sribus Scripting wiki, I'd like to see<br>
> if there are any<br>
> objections or problems with this approach.<br>
><br>
> Opinions?<br>
><br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> scribus-dev mailing list<br>
> <a href="mailto:scribus-dev@lists.scribus.net">scribus-dev@lists.scribus.net</a><br>
> <a href="http://lists.scribus.net/mailman/listinfo/scribus-dev" target="_blank">http://lists.scribus.net/mailman/listinfo/scribus-dev</a><br>
><br>
<br>
_______________________________________________<br>
scribus-dev mailing list<br>
<a href="mailto:scribus-dev@lists.scribus.net">scribus-dev@lists.scribus.net</a><br>
<a href="http://lists.scribus.net/mailman/listinfo/scribus-dev" target="_blank">http://lists.scribus.net/mailman/listinfo/scribus-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">John L. Poole<br><br>P.O. Box 6566 <br>Napa, CA 94581-6566<br>707-812-1323<br><br><a href="mailto:jlpoole56@gmail.com" target="_blank">jlpoole56@gmail.com</a></div></div>
</div>