[Eric] arguments parsing with 'Run project'

Detlev Offenbach detlev at die-offenbachs.de
Fri May 18 11:49:07 BST 2012


Hello,

I cannot observe this behavior over here. Please send a little script, that 
shows the issue. Please give version info for eric and the libraries (PyQt4, 
...).

Regards,
Detlev

Am Montag, 14. Mai 2012, 17:09:01 schrieb Ekaterina Mishina-Syrkina:
> Hello,
> 
> I'm using optional input arguments for my python project. However,
> arguments parsing is different when I use 'Run project' feature and when I
> run my project from terminal. In the first case, if no input arguments are
> given, sys.argv is an list of two elements, in the terminal there will be
> only one element in the list. Also, I can't use argparse package with 'Run
> project'. Is that expected behavior? And is there any way to make those two
> approaches to work the same way?
> 
> The way I use 'Run project' (assuming main project file is called
> my_program.py and it is located at D:\...\WorkingDir).
> 
> Command line: my_program.py
> Working directory: D:\...\WorkingDir
> 
> Thanks. Best,
> Katya
-- 

Detlev Offenbach
detlev at die-offenbachs.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/eric/attachments/20120518/59250538/attachment.html>


More information about the Eric mailing list