Skip to content

Commit ab3ba40

Browse files
committed
Inprove runner
1 parent d01dd80 commit ab3ba40

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed
File renamed without changes.

docs/example/run.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@
55
parser = argparse.ArgumentParser("Runner for examples")
66
parser.add_argument("type", help="Which example is run.")
77
args = parser.parse_args()
8-
if args.type not in ["static", "dynamic"]:
8+
if args.type == "static":
9+
folder = f"01-{args.type}"
10+
elif args.type == "hybrid":
11+
folder = f"02-{args.type}"
12+
else:
913
raise ValueError("Invalid value for library type.")
1014
run_cli([
1115
"--pythonpath",
12-
args.type,
13-
args.type
16+
folder,
17+
folder
1418
])

0 commit comments

Comments
 (0)