Page 2 of 2

Re: [SOLVED] Calculating TOTAL disk space for a package

Published: April 27, 2020 - 1:49 PM
by sfonteneau
Your method works; I imagined it would work like this:

Code: Select all

remove_file(makepath(install_location('WAPT_is1'),'cache',control.filename))

Re: [SOLVED] Calculating TOTAL disk space for a package

Published: April 27, 2020 - 1:53 PM
by florentR2
sfonteneau wrote: Apr 27, 2020 - 1:49 PM Your method works; I imagined it would work like this:

Code: Select all

remove_file(makepath(install_location('WAPT_is1'),'cache',control.filename))
When I ran my test, control.filename returned "None".
For the few large packages I'll have, the workaround method will suffice.

THANKS.

Re: [SOLVED] Calculating TOTAL disk space for a package

Published: April 27, 2020 - 5:05 PM
by sfonteneau
control.filename is not available in PyScripter (indeed, the package is not yet built).

That might be why.