[scribus] Patch submitted for Command Line Arguments to be passed to python script

Craig Bradney cbradney at scribus.info
Sun Sep 13 15:41:40 UTC 2015


> On 13 Sep 2015, at 16:28, JLuc <jluc at no-log.org> wrote:
> 
> Le 13/09/2015 16:03, Gregory Pittman a écrit :
>> I have a script which requires a variable S (which in this case is a Zip
>> code). It previously got this from a valueDialog. I commented out the
>> valueDialog line.
>> I tried to run it with
>> scribus -g -py postnet.py --python-arg -S 40207
>> and when it runs it tells me there is no value for S.
>> Maybe I don't understand what a 'python-arg' is.
> 
> did you test -S or S ?
> plz share your script for better answers.
> 
> if you pass -S, -S should be tested, not S
> as demonstrated in the example script
> and explained in the wiki article.

—python-arg <argument name> <argument value> , no need to add - to the argument name

Craig


More information about the scribus mailing list