Page 1 of 1

function/instruction syntax

Published: March 6, 2020 - 5:31 PM
by asder
Hello,
as I'm not bilingual in French and Python, I need a little help. Sorry for the basic nature of the question. In other languages, no problem, but here... stumped.
My incredibly simple need is to launch a program with a parameter
like `run(r' "test.bat" w_computername')` preceded by `get_computername()`.
I probably need to add a % or ` or $ or § or something else so that `run` passes the parameter value... I've searched and searched...
is there a syntax guide somewhere?
Thanks in advance
, Thierry

Re: Function/instruction syntax

Published: March 10, 2020 - 5:25 PM
by dcardon
Hello Thierry,
asder wrote: March 6, 2020 - 5:31 PM Not being bilingual in French and Python, I need a little help. Sorry for the basic nature of the question. In other languages, no problem, but here... it's a real pain.
My incredibly simple need is to launch a program with a parameter
like `run(r' "test.bat" w_computername')` preceded by `get_computername()`.
I probably need to add a % or ` or $ or § or something else so that `run` passes the parameter value... I've searched and searched...
is there a syntax cheat sheet somewhere?
The best thing to do is to look at the other WAPT packages on the store (https://store.wapt.fr). In the detailed package description there are setup.py scripts which can provide inspiration.

Sincerely,

Denis