X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 19 Sep 2012 05:29 AM by  anon
SPAWN with .py
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
19 Sep 2012 05:29 AM
    Hi everyone, I am trying to launch a script written in Python to georeference METEOSAT products from IDL, using the command SPAWN.This code is based on the use of FWTools Shell (windows) and, as far as I understood, IDL opens the cmd shell.Moreover, the python script is located in another folder. I tried manually to open the FWTools Shell, change directory to the location of the script, and launch it (directly calling the python script or calling a .bat file): in this way it works. With IDL I am not sure how I can set first the FWTools Shell path and then the python script path.I tried something like this: SETENV, 'VAR=C:\Program Files (x86)\FWTools2.4.7 then I tried to change the directory cd, 'C:\Program Files (x86)\pythonxy\georeferencer' and launch the script SPAWN, 'test.bat' or I set the parameters and sent the command spawn, ['cmd','params'] It does not work in both the cases. Any clue? Thanks in advance Mitch
    You are not authorized to post a reply.