Runnning an IDL code with text file output in Python -


i have number of different codes take text file data input , write different 1 output. 3 of these codes written in python 2.7, 1 written in idl. goal create 1 "master" python program can run of these codes, typing "python master.py". however, because of limitations of system, unable use 'pyidl' or 'pyidly' modules referred in this question. not sure if matters, using linux command prompt.

currently 'master.py' code looks this:

import os os.system("python pycode_1.py")  os.system("idl") os.system(".com idlcode.pro") os.system(".r idlcode,"imputfile.dat"") os.system("exit")  os.system("python pycode_2.py") os.system("python pycode_3.py") 

this code runs first python code , enters idl fine. however, not enter later comands idl. means idl command prompt comes up, cannot run idl code follows.

i appreciative advice solve issue. in advance!

if have idl 8.5 or later, ships idl-python bridge built in. code like:

from idlpy import * idl.idlcode() 

hope helps.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -