python - How to pass a program argument via run configuration in Eclipse -


i running python program , want pipe output file. in python command is

 "python myfile.py > output.txt"  

i'm running program via pydev in eclipse, how can pass in parameter "> output.txt" run configuration within eclipse ? there not seem option :

enter image description here

when try above receive error :

c:\python27\python.exe: can't open file 'output.txt': [errno 2] no such file or directory 

go run configuration of project -> open "common" tab -> find "standard input , output" tab. check "file" , select file want output go.

enter image description here


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -