<div dir="ltr"><div><div>You don't need to duplicate the call ini scripts and setting of python path, start osgeo4w shell and then run the pyscripter.bat from previous post all in one go:<br><br></div>     <span style="font-family:monospace,monospace">C:\osgeo4w\osgeo4w.bat pyscripter.bat</span><br><br></div><div>...and I'm not using the remote interpreter. If you're willing to tinker with the o4w install you should be able to get it to work by copying python.exe to PYTHONHOME (./apps/Python27).<br><br></div><div><br>Digression: <br><br>The issue is that we follow 'nix convention and split the standard Windows python structure into "bin" and "lib". I think eventually we will have to merge it back, putting everything together under ./apps/PythonXX. It'll be a way to support simultaneous Pyhon 2 and 3, perhaps the only way.<br><br></div><div>I've been hesitant to suggest or start that because it will touch almost everybody (esp. package maintainers) and I don't have the time to devote to seeing it through.<br></div><div><br></div><div>Cheers,<br><br></div><div>matt<br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 23, 2015 at 4:00 AM, Müller, Andreas, Dr. phil. <span dir="ltr"><<a href="mailto:muellea@uni-trier.de" target="_blank">muellea@uni-trier.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Hi Matt,<br>
i was using PyScripter with my portable Install of osgeo4w. Never had issues starting it, but<font> it does shows strange behaviour when you work with several scripts, one importing the others.<br>
I read about using a remote python engine, but had no luck, because changing the pythonpath to
</font><font><span style="font-family:monospace,monospace">%osgeo4w_root%\apps\Python27
</span></font>AND using remserver doesn't work. How did you configure PyScripter?
<br>
<br>
my start script:<br>
set PYSC_DIR=%~dp0<br>
<br>
rem calling osgeo4w ini-scripts, incl. python.bat<br>
for %%F in ("%OSGEO4W_ROOT%\etc\ini\*.bat") do call "%%F"<br>
<br>
rem setting pythonpath, it's more than needed<br>
SET PYTHONPATH=%OSGEO4W_ROOT%\apps\python27\lib;%OSGEO4W_ROOT%\apps\python27\lib\site-packages;%OSGEO4W_ROOT%\bin;%PYSC_DIR%\Lib;<br>
<br>
rem start Pyscripter<br>
start "PyScripter" /B %PYSC_DIR%\PyScripter.exe --python27 --pythondllpath=%OSGEO4W_ROOT%\bin<br>
<br>
<font face="Helvetica">Dr. Andreas Müller -_- </font><font face="Helvetica">Universität Trier - FB VI - Kartographie,
<font face="Helvetica"><a href="mailto:muellea@uni-trier.de" target="_blank">muellea@uni-trier.de</a> </font></font>
<div>
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<p class="MsoNormal"><font face="Helvetica">54286 Trier, Behringstr. 29, F 191, <a href="tel:%2B%2B496512014576" value="+496512014576" target="_blank">++496512014576</a><br>
</font></p>
</div>
</div>
</div>
</div>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div style="direction:ltr"><font face="Tahoma" color="#000000"><b>Von:</b> <a href="mailto:osgeo4w-dev-bounces@lists.osgeo.org" target="_blank">osgeo4w-dev-bounces@lists.osgeo.org</a> [<a href="mailto:osgeo4w-dev-bounces@lists.osgeo.org" target="_blank">osgeo4w-dev-bounces@lists.osgeo.org</a>]" im Auftrag von "Matt Wilkie [<a href="mailto:maphew@gmail.com" target="_blank">maphew@gmail.com</a>]<br>
<b>Gesendet:</b> Samstag, 21. März 2015 19:09<br>
<b>An:</b> osgeo4w-dev<br>
<b>Betreff:</b> Re: [osgeo4w-dev] using Pyscripter with Osgeo4w<br>
</font><br>
</div><div><div class="h5">
<div></div>
<div>
<div dir="ltr">
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sat, Mar 21, 2015 at 11:02 AM, Matt Wilkie <span dir="ltr">
<<a href="mailto:maphew@gmail.com" target="_blank">maphew@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>    <span style="font-family:monospace,monospace">%~d0\apps\PyScripter\PyScripter.exe %* --pythondllpath=%osgeo4w_root%\bin</span></div>
</blockquote>
</div>
<br>
</div>
<div class="gmail_extra">Use this instead to avoid blocking the calling shell:<br>
<br>
    <span style="font-family:monospace,monospace">start /b "Pyscripter" cmd.exe /c %~d0\apps\PyScripter\PyScripter.exe %* --pythondllpath=%osgeo4w_root%\bin</span><br>
</div>
<div class="gmail_extra"><br>
<br>
</div>
</div>
</div>
</div></div></div>
</div>
</div>
</div>

</blockquote></div><br></div>