This took a bit of time to figure out, so I figured out I'd share for posterity. Pyscripter isn't my normal IDE, but it's popular, especially in the ArcGIS ecosystem. Here's how to get it working with Osgeo4W python instead of "the other one":
Install pyscripter, create this batchfile, adjusting path as needded, and save it in PATH, run it, done.
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:
...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).
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.
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.
On Mon, Mar 23, 2015 at 4:00 AM, Müller, Andreas, Dr. phil. <[hidden email]> wrote:
i was using PyScripter with my portable Install of osgeo4w. Never had issues starting it, but it does shows strange behaviour when you work with several scripts, one importing the others.
I read about using a remote python engine, but had no luck, because changing the pythonpath to
AND using remserver doesn't work. How did you configure PyScripter?
my start script:
rem calling osgeo4w ini-scripts, incl. python.bat
for %%F in ("%OSGEO4W_ROOT%\etc\ini\*.bat") do call "%%F"
rem setting pythonpath, it's more than needed
rem start Pyscripter
start "PyScripter" /B %PYSC_DIR%\PyScripter.exe --python27 --pythondllpath=%OSGEO4W_ROOT%\bin
Dr. Andreas Müller -_- Universität Trier - FB VI - Kartographie,
54286 Trier, Behringstr. 29, F 191, <a href="tel:%2B%2B496512014576" value="+496512014576" target="_blank">++496512014576