Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4211185
By: lianos
Hi,
So I have a script that I'm editing w/ Eclipse + PyDev which accepts command
line arguments. I'd like to run/test this script from within Eclipse by setting
up a "Run configuration" for it.
Generally I just Go to the "Run > Run As ... > Python Run" so that it sets up
a run configuration and runs the script -- which will fail since there are no
command line arguments.
Now what I do is go back into the Run Configurations window (by going to Run
> Run ...), select the script under the Python Runs section and switch over
to the "Arguments" tab and configure it like so:
Base Directory: ${project_loc}
Program Arguments: ${string_prompt}
Interpreter: Default Interpreter
VM Arguments: [Usually None/blank]
This actually does exactly what I want in that every time I run the script from
w/in eclipse, it pops up a dialog box where I can enter the arguments that I
would usually pass to the script when invoking it from the command line.
The thing is that when I put ${string_promt} in the Program Arguments and save
(Apply) these settings, it gets real whacky navigating around in this "Run
Configurations" window because as long as this script's run config is active
and I'm navigating around in it (for instance, jumping around between tabs (like
Refresh, Commands, etc.)) the string dialog keeps popping up and asking me for
command line args over and over ... do it and you'll see what I mean.
As long as that script is "the active" one (selected on the left in the run
config window), everything thing you do will pop up that string dialog box.
It doesn't act like this when using ${string_prompt} for Java Application
configs
...
Am I doing something wrong or is this a bug that can be fixed?
Thanks,
-steve
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users