Page 1 sur 1

[RESOLU] option WAPT.options.force in setup.py

Posté : 17 janv. 2025 - 15:10
par OlivierSchmitt
Hello everyone,

I would like to know if WAPT.options.force returns true or 1 when in the console we click on the package and we do a forced installation?

Thanks in advance.

Re: option WAPT.options.force in setup.py

Posté : 20 janv. 2025 - 15:47
par sfonteneau
In code :

Code : Tout sélectionner

parser.add_option("-f", "--force",    dest="force",    default=False, action='store_true', help="Force (default: %default)")
Action is store_true, This should normally be a boolen

But normally in a package you just have to do "if force" in a package

Re: option WAPT.options.force in setup.py

Posté : 30 janv. 2025 - 17:56
par OlivierSchmitt
Thanks you are right, i have use "if force :"

Re: option WAPT.options.force in setup.py

Posté : 31 janv. 2025 - 12:30
par dcardon
Hi Olivier,

thanks for the update :-) , I'll close the topic.

Denis