1+ from bo import BenchIoPOperation
2+ from bp import BenchIoPProcess
3+
4+ import os
5+
6+ # get current directory
7+ current_dir = os .path .dirname (os .path .realpath (__file__ ))
8+ # get working directory
9+ working_dir = os .path .abspath (os .path .join (current_dir , os .pardir ))
10+ # get the absolute path of 'src'
11+ src_dir = os .path .abspath (os .path .join (working_dir , os .pardir ))
12+
13+ # create a strings with current_dir and src_dir with a | separator
14+ classpaths = f"{ current_dir } |{ src_dir } "
15+
16+ CLASSES = {
17+ "Python.BenchIoPOperation" : BenchIoPOperation ,
18+ "Python.BenchIoPProcess" : BenchIoPProcess ,
19+ }
20+
21+ PRODUCTIONS = [{
22+ "Bench.Production" : {
23+ "@Name" : "Bench.Production" ,
24+ "@TestingEnabled" : "true" ,
25+ "@LogGeneralTraceEvents" : "false" ,
26+ "Description" : "" ,
27+ "ActorPoolSize" : "1" ,
28+ "Item" : [
29+ {
30+ "@Name" : "Python.BenchIoPOperation" ,
31+ "@Category" : "" ,
32+ "@ClassName" : "Python.BenchIoPOperation" ,
33+ "@PoolSize" : "1" ,
34+ "@Enabled" : "true" ,
35+ "@Foreground" : "false" ,
36+ "@Comment" : "" ,
37+ "@LogTraceEvents" : "false" ,
38+ "@Schedule" : "" ,
39+ "Setting" : {
40+ "@Target" : "Host" ,
41+ "@Name" : "%classpaths" ,
42+ "#text" : classpaths
43+ }
44+ },
45+ {
46+ "@Name" : "Python.BenchIoPProcess" ,
47+ "@Category" : "" ,
48+ "@ClassName" : "Python.BenchIoPProcess" ,
49+ "@PoolSize" : "0" ,
50+ "@Enabled" : "true" ,
51+ "@Foreground" : "false" ,
52+ "@Comment" : "" ,
53+ "@LogTraceEvents" : "false" ,
54+ "@Schedule" : "" ,
55+ "Setting" : {
56+ "@Target" : "Host" ,
57+ "@Name" : "%classpaths" ,
58+ "#text" : classpaths
59+ }
60+ }
61+ ]
62+ }
63+ }
64+ ]
0 commit comments