From 6fee7200cc0e91f53211afb3345cb7715d0d3be1 Mon Sep 17 00:00:00 2001 From: jand Date: Fri, 8 Aug 2003 22:18:33 +0000 Subject: [PATCH] in run_all --- example/manual/queue.py | 8 +++++--- example/manual/run_all.py | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/example/manual/queue.py b/example/manual/queue.py index f2cea62b..bbb441de 100644 --- a/example/manual/queue.py +++ b/example/manual/queue.py @@ -41,7 +41,9 @@ def Consumer(q): def main(): P = Producer(q) C = Consumer(q) - return P, C + sim = Simulation(P, C) + sim.run() + -sim = Simulation(main()) -sim.run() +if __name__ == '__main__': + main() diff --git a/example/manual/run_all.py b/example/manual/run_all.py index 85010926..ae71cec9 100644 --- a/example/manual/run_all.py +++ b/example/manual/run_all.py @@ -7,6 +7,7 @@ modules = ('hello1', 'mux', 'mux2', 'inc', + 'queue', 'sparseMemory', 'fifo', )