hello im trying to call and pass arguments to an external program in python.
ex call:
./asdf.py ./asdf.rb
./asdf.rb is stored in sys.argv[1]
the problem is that ./asdf.rb is not recieving any of the arguments.
here is my code.
any pointers would be awesomeCode:from popen2 import Popen3 import sys str = "1 2 3 4" # string of arguments call = Popen3('sys.argv[1] %str', True) # argv[1] = ./asdf.rb call_out = call.fromchild.readlines() print call_out
thanks
Bookmarks