Re: [Tutor] How to design the structure of multi-steps(and substeps)scripts

2011-04-11 Thread Alan Gauld
"leechau" wrote def step1: local_var1 = ... # some other variable definitions for step1 def substep11: pass # more substeps ... global_var1 = ... # more global var definitions... if step1.return_success: step2 Since this is obviously pseudo code I'll assume the real co

Re: [Tutor] How to design the structure of multi-steps(and substeps) scripts

2011-04-10 Thread Steven D'Aprano
On Mon, Apr 11, 2011 at 08:43:25AM +0800, leechau wrote: > Hi everybody. I wrote a script to run BVT and it's code structure like this: What's BVT? > def step1: > local_var1 = ... > # some other variable definitions for step1 > def substep11: > pass > def substep12: >

[Tutor] How to design the structure of multi-steps(and substeps) scripts

2011-04-10 Thread leechau
Hi everybody. I wrote a script to run BVT and it's code structure like this: def step1: local_var1 = ... # some other variable definitions for step1 def substep11: pass def substep12: pass # more substeps def step2: local_var1 = ... # some other variabl